Update viewer_ar.js
Browse files- viewer_ar.js +1 -1
viewer_ar.js
CHANGED
|
@@ -97,7 +97,7 @@
|
|
| 97 |
const camera = new pc.Entity("Camera");
|
| 98 |
camera.addComponent("camera", { clearColor: new pc.Color(0,0,0,0), farClip: 10000 }); app.root.addChild(camera);
|
| 99 |
const light = new pc.Entity("Light");
|
| 100 |
-
light.addComponent("light", { type: "spot", range: 30, intensity:
|
| 101 |
|
| 102 |
// Réticule
|
| 103 |
const reticleMat = new pc.StandardMaterial(); reticleMat.diffuse=new pc.Color(0.2,0.8,1.0); reticleMat.opacity=0.85; reticleMat.blendType=pc.BLEND_NORMAL; reticleMat.update();
|
|
|
|
| 97 |
const camera = new pc.Entity("Camera");
|
| 98 |
camera.addComponent("camera", { clearColor: new pc.Color(0,0,0,0), farClip: 10000 }); app.root.addChild(camera);
|
| 99 |
const light = new pc.Entity("Light");
|
| 100 |
+
light.addComponent("light", { type: "spot", range: 30, intensity: 10.1, castShadows: true }); light.setLocalPosition(0,10,0); app.root.addChild(light);
|
| 101 |
|
| 102 |
// Réticule
|
| 103 |
const reticleMat = new pc.StandardMaterial(); reticleMat.diffuse=new pc.Color(0.2,0.8,1.0); reticleMat.opacity=0.85; reticleMat.blendType=pc.BLEND_NORMAL; reticleMat.update();
|