Is it possible to animate an envimaps rotation?
new RGBELoader().load( 'royal_esplanade_1k.hdr', function ( texture ) {
texture.mapping = THREE.EquirectangularReflectionMapping;
scene.environment = texture
});
Is it possible to animate an envimaps rotation?
new RGBELoader().load( 'royal_esplanade_1k.hdr', function ( texture ) {
texture.mapping = THREE.EquirectangularReflectionMapping;
scene.environment = texture
});
yes, but i don’t think like that. this is react but i guess gets the point across Building live envmaps - CodeSandbox the lights that you see rolling over the car come from a “live” environment.
more or less that’s what the demo above is doing.
would that still work if the camera was static and didn’t move? i’ve noticed that seems to be the default behavior when the camera moves anyway im curious if we can make the map move even without moving the camera, thanks
envmap is a reflection, you can’t rotate the sphere because the reflection will stay the same. the camera inside the environment map has to rotate around itself, that would be fairly easy to implement.
Related: