Browse Source

expecting object

resolution passed should be an object instead of a number as per the EquirectangularToCubeGenerator.js file
Atul Mourya 7 years ago
parent
commit
68605c600d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/webgl_materials_envmaps_exr.html

+ 1 - 1
examples/webgl_materials_envmaps_exr.html

@@ -128,7 +128,7 @@
 
 
 					texture.encoding = THREE.sRGBEncoding;
 					texture.encoding = THREE.sRGBEncoding;
 
 
-					var cubemapGenerator = new THREE.EquirectangularToCubeGenerator( texture, 512 );
+					var cubemapGenerator = new THREE.EquirectangularToCubeGenerator( texture, { resolution: 512 } );
 					var cubeMapTexture = cubemapGenerator.update( renderer );
 					var cubeMapTexture = cubemapGenerator.update( renderer );
 
 
 					var pmremGenerator = new THREE.PMREMGenerator( cubeMapTexture );
 					var pmremGenerator = new THREE.PMREMGenerator( cubeMapTexture );