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(
// AR lighting
// ========================================================
const light =
new THREE.DirectionalLight(
0xffffff,
1
);
// Soft overall illumination
const ambientLight = new THREE.AmbientLight(
0xffffff,
1.5
);
scene.add(ambientLight);
light.position.set(
10,
10,
10
// Sky/ground illumination
const hemisphereLight = new THREE.HemisphereLight(
0xffffff,
0x888888,
1.5
);
scene.add(hemisphereLight);
scene.add(light);
// Directional light for shadows and form
const directionalLight = new THREE.DirectionalLight(
0xffffff,
1.5
);
directionalLight.position.set(
10,
20,
10
);
scene.add(directionalLight);
// ========================================================
......
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