Hi everyone ,
I’m encountering an issue with Three.js where I’m trying to change the envMapIntensity
for all objects in the scene. Despite modifying it correctly in the console, I don’t see any effect in the rendering.
Here’s a brief overview of what I’ve done:
-
Scene Setup: I’ve set the
scene.background
andscene.environment
to anenvironmentMap
. This should, theoretically, apply the environment map globally without needing to set it individually on each object. -
Traversing and Setting
envMapIntensity
: I traverse through all objects in the scene and set theirenvMapIntensity
property. Although this appears to work (I see the values change in the console), there’s no visible change in the rendering.
Here’s a link to my code snippet where you can see the implementation details.
Additionally, I’ve been following the course “ThreeJS Journey,” and in the tutorial, this approach seems to work just fine.
Questions:
- Is there a special way to ensure that changes to
envMapIntensity
are correctly applied to all objects, especially when using a global environment map? - Is it possible that recent updates to Three.js have altered how
envMapIntensity
is handled compared to what was shown in the tutorial?
Any guidance or suggestions on how to resolve this would be greatly appreciated!
Thanks in advance !