-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
Closed
Description
Description of the problem
I'm trying to use equirectangular .hdr image as MeshStandardMaterial's envMap.
It seems roughness does not work with equirectangular .hdr envMaps, although it does work with cube hdr maps.
The original examples/webgl_materials_variations_standard.html, using cube hdr maps, looks like:

When using an equirectangular hdr image instead, the result is as follows. The reflections of higher roughness are as sharp as that of lower roughness.

My loading code:
new THREE.RGBELoader().load( 'textures/miranda_uncropped.hdr', function( texture ) {
texture.encoding = THREE.RGBEEncoding;
texture.flipY = true;
texture.mapping = THREE.EquirectangularReflectionMapping;
// .....
var material = new THREE.MeshStandardMaterial( {
map: imgTexture,
bumpMap: imgTexture,
bumpScale: bumpScale,
color: diffuseColor,
metalness: beta,
roughness: 1.0 - alpha,
envMap: index % 2 === 0 ? null : texture
} );
// ......Three.js version
- Dev
- r95
- ...
Browser
- All of them
- Chrome
- Firefox
- Internet Explorer
OS
- All of them
- Windows
- macOS
- Linux
- Android
- iOS