You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Model element supports setting a environment map via the environmentMap attribute.
Something very useful is the ability to set the rotation of the env map, as the initial rotation an env map is often arbitrary and not what a creator desires. I think this would be pretty crucial to support.
What are thoughts on how this could best be supported? Here's one idea.
this is a great topic! My general thoughts are that this will be a relevant thing to do for some time, but I'm conscious that it opens the door to multiple global IBLs, potentially have selective IBLs influencing different parts of the scene etc.
And beyond that, IBLs are the best we can offer folks, but it might only be a few years before something more sophisticated is practical - though we do need to make something work for today!
Activity
zachernuk commentedon May 5, 2025
this is a great topic! My general thoughts are that this will be a relevant thing to do for some time, but I'm conscious that it opens the door to multiple global IBLs, potentially have selective IBLs influencing different parts of the scene etc.
And beyond that, IBLs are the best we can offer folks, but it might only be a few years before something more sophisticated is practical - though we do need to make something work for today!
/agenda
mkeblx commentedon May 5, 2025
I agree that creators will want more lighting control including including selective influence, among other things.
I linked to the above three.js per material envMap rotation control but I meant to link to the per scene control:
https://threejs.org/docs/index.html#api/en/scenes/Scene.environmentRotation
I hope we could get pretty far with some basic additions to the lighting setup, but with an eye towards what we can do in the future.
mkeblx commentedon May 8, 2025
During the call, it was in general agreed that this makes sense to support. Some additional points made:
With this in mind, this below could work, only exposed as a JS property:
cabanier commentedon Oct 27, 2026
Setting it as a matrix makes more sense. We can write spec text so transformations that aren't just rotatations are rejected:
mwyrzykowski commentedon Oct 27, 2026
Agreed that matrix makes the most sense
cabanier commentedon Oct 27, 2026
/agenda