Commit 1d8ca348 authored by Alfakhori's avatar Alfakhori
Browse files

fix light

parent 0d3fb29f
Pipeline #12459 passed with stage
in 23 seconds
...@@ -1081,21 +1081,38 @@ async function activateXR( ...@@ -1081,21 +1081,38 @@ async function activateXR(
// AR lighting // AR lighting
// ======================================================== // ========================================================
const light = // Soft overall illumination
new THREE.DirectionalLight( const ambientLight = new THREE.AmbientLight(
0xffffff, 0xffffff,
1 1.5
); );
scene.add(ambientLight);
light.position.set(
10, // Sky/ground illumination
const hemisphereLight = new THREE.HemisphereLight(
0xffffff,
0x888888,
1.5
);
scene.add(hemisphereLight);
// Directional light for shadows and form
const directionalLight = new THREE.DirectionalLight(
0xffffff,
1.5
);
directionalLight.position.set(
10, 10,
20,
10 10
); );
scene.add(directionalLight);
scene.add(light);
// ======================================================== // ========================================================
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment