trois icon indicating copy to clipboard operation
trois copied to clipboard

HDRI lighting with scenes?

Open keyle opened this issue 3 years ago • 0 comments

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.

keyle avatar May 23 '22 00:05 keyle