Update viewer_ar.js
Browse files- viewer_ar.js +2 -2
viewer_ar.js
CHANGED
|
@@ -99,7 +99,7 @@
|
|
| 99 |
// ===== Rendu / PBR defaults (évite l'objet noir) =====
|
| 100 |
app.scene.gammaCorrection = pc.GAMMA_SRGB;
|
| 101 |
app.scene.toneMapping = pc.TONEMAP_ACES;
|
| 102 |
-
app.scene.exposure = 1
|
| 103 |
app.scene.ambientLight = new pc.Color(1, 1, 1);
|
| 104 |
|
| 105 |
// Camera + lumière (directionnelle par défaut)
|
|
@@ -108,7 +108,7 @@
|
|
| 108 |
app.root.addChild(camera);
|
| 109 |
|
| 110 |
const light = new pc.Entity("Light");
|
| 111 |
-
light.addComponent("light", { type: "directional", intensity:
|
| 112 |
light.setLocalEulerAngles(45, 30, 0); // direction lisible par défaut
|
| 113 |
app.root.addChild(light);
|
| 114 |
|
|
|
|
| 99 |
// ===== Rendu / PBR defaults (évite l'objet noir) =====
|
| 100 |
app.scene.gammaCorrection = pc.GAMMA_SRGB;
|
| 101 |
app.scene.toneMapping = pc.TONEMAP_ACES;
|
| 102 |
+
app.scene.exposure = 1; // ajuste 0.9–1.8 si besoin
|
| 103 |
app.scene.ambientLight = new pc.Color(1, 1, 1);
|
| 104 |
|
| 105 |
// Camera + lumière (directionnelle par défaut)
|
|
|
|
| 108 |
app.root.addChild(camera);
|
| 109 |
|
| 110 |
const light = new pc.Entity("Light");
|
| 111 |
+
light.addComponent("light", { type: "directional", intensity: 1.0, castShadows: true, color: new pc.Color(1,1,1) });
|
| 112 |
light.setLocalEulerAngles(45, 30, 0); // direction lisible par défaut
|
| 113 |
app.root.addChild(light);
|
| 114 |
|