Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -327,12 +327,12 @@ class CameraControl3D(gr.HTML):
|
|
| 327 |
|
| 328 |
// Camera model
|
| 329 |
const cameraGroup = new THREE.Group();
|
| 330 |
-
const bodyMat = new THREE.MeshStandardMaterial({ color:
|
| 331 |
const body = new THREE.Mesh(new THREE.BoxGeometry(0.3, 0.22, 0.38), bodyMat);
|
| 332 |
cameraGroup.add(body);
|
| 333 |
const lens = new THREE.Mesh(
|
| 334 |
new THREE.CylinderGeometry(0.09, 0.11, 0.18, 16),
|
| 335 |
-
new THREE.MeshStandardMaterial({ color:
|
| 336 |
);
|
| 337 |
lens.rotation.x = Math.PI / 2;
|
| 338 |
lens.position.z = 0.26;
|
|
|
|
| 327 |
|
| 328 |
// Camera model
|
| 329 |
const cameraGroup = new THREE.Group();
|
| 330 |
+
const bodyMat = new THREE.MeshStandardMaterial({ color: 0x6699cc, metalness: 0.5, roughness: 0.3 });
|
| 331 |
const body = new THREE.Mesh(new THREE.BoxGeometry(0.3, 0.22, 0.38), bodyMat);
|
| 332 |
cameraGroup.add(body);
|
| 333 |
const lens = new THREE.Mesh(
|
| 334 |
new THREE.CylinderGeometry(0.09, 0.11, 0.18, 16),
|
| 335 |
+
new THREE.MeshStandardMaterial({ color: 0x334455, metalness: 0.9, roughness: 0.1 })
|
| 336 |
);
|
| 337 |
lens.rotation.x = Math.PI / 2;
|
| 338 |
lens.position.z = 0.26;
|