Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Alfakhori
Gengenbach
Commits
1d8ca348
Commit
1d8ca348
authored
Sep 21, 2026
by
Alfakhori
Browse files
fix light
parent
0d3fb29f
Pipeline
#12459
passed with stage
in 23 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
public/ar_main.js
View file @
1d8ca348
...
...
@@ -1081,21 +1081,38 @@ async function activateXR(
// AR lighting
// ========================================================
const
light
=
new
THREE
.
Directional
Light
(
0xffffff
,
1
);
// Soft overall illumination
const
ambientLight
=
new
THREE
.
Ambient
Light
(
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
);
// ========================================================
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment