소스 검색

fix the resolution to what is hard coded in the shaders.

Ben Houston 9 년 전
부모
커밋
a6fdafa726
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      examples/js/pmrem/PMREMGenerator.js

+ 2 - 2
examples/js/pmrem/PMREMGenerator.js

@@ -11,10 +11,10 @@
  *  by this class.
  */
 
-THREE.PMREMGenerator = function( sourceTexture, resolution ) {
+THREE.PMREMGenerator = function( sourceTexture ) {
 
 	this.sourceTexture = sourceTexture;
-  this.resolution = ( resolution !== undefined ) ? resolution : 256;
+  this.resolution = 256; // NODE: 256 is currently hard coded in the glsl code for performance reasons
 
   var monotonicEncoding = ( sourceTexture.encoding === THREE.LinearEncoding ) ||
     ( sourceTexture.encoding === THREE.GammaEncoding ) || ( sourceTexture.encoding === THREE.sRGBEncoding );