trois
trois copied to clipboard
HDRI lighting with scenes?
Hello,
I haven't seen any mention of HDRI so I thought I'd ask before embarking on a project.
Take this example from threejs, how would one go about doing this with trois?
new RGBELoader()
.setPath( 'textures/equirectangular/' )
.load( 'royal_esplanade_1k.hdr', function ( texture ) {
texture.mapping = THREE.EquirectangularReflectionMapping;
scene.background = texture;
scene.environment = texture;
[...]
}
thank you.