diff --git a/examples/webgl_loader_texture_exr.html b/examples/webgl_loader_texture_exr.html index d80722b2410d81..f79ec758d4281c 100644 --- a/examples/webgl_loader_texture_exr.html +++ b/examples/webgl_loader_texture_exr.html @@ -58,15 +58,10 @@ new EXRLoader() .load( 'textures/memorial.exr', function ( texture, textureData ) { - // memorial.exr is NPOT - //console.log( textureData ); //console.log( texture ); - // EXRLoader sets these default settings - //texture.generateMipmaps = false; - //texture.minFilter = LinearFilter; - //texture.magFilter = LinearFilter; + texture.colorSpace = THREE.LinearSRGBColorSpace; const material = new THREE.MeshBasicMaterial( { map: texture } ); diff --git a/examples/webgl_loader_texture_hdr.html b/examples/webgl_loader_texture_hdr.html index bf6d14558e819f..2bb7dd502a498e 100644 --- a/examples/webgl_loader_texture_hdr.html +++ b/examples/webgl_loader_texture_hdr.html @@ -61,6 +61,8 @@ //console.log( textureData ); //console.log( texture ); + texture.colorSpace = THREE.LinearSRGBColorSpace; + const material = new THREE.MeshBasicMaterial( { map: texture } ); const quad = new THREE.PlaneGeometry( 1.5 * textureData.width / textureData.height, 1.5 ); diff --git a/examples/webgl_loader_texture_ultrahdr.html b/examples/webgl_loader_texture_ultrahdr.html index 74e203e6ceec2a..c7286071f41b09 100644 --- a/examples/webgl_loader_texture_ultrahdr.html +++ b/examples/webgl_loader_texture_ultrahdr.html @@ -83,6 +83,8 @@ loader.load( `textures/equirectangular/spruit_sunrise_${resolution}.hdr.jpg`, function ( texture ) { + texture.colorSpace = THREE.LinearSRGBColorSpace; + texture.mapping = THREE.EquirectangularReflectionMapping; texture.needsUpdate = true;