Skip to content

Commit a6fdafa

Browse files
committed
fix the resolution to what is hard coded in the shaders.
1 parent b514505 commit a6fdafa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/js/pmrem/PMREMGenerator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
* by this class.
1212
*/
1313

14-
THREE.PMREMGenerator = function( sourceTexture, resolution ) {
14+
THREE.PMREMGenerator = function( sourceTexture ) {
1515

1616
this.sourceTexture = sourceTexture;
17-
this.resolution = ( resolution !== undefined ) ? resolution : 256;
17+
this.resolution = 256; // NODE: 256 is currently hard coded in the glsl code for performance reasons
1818

1919
var monotonicEncoding = ( sourceTexture.encoding === THREE.LinearEncoding ) ||
2020
( sourceTexture.encoding === THREE.GammaEncoding ) || ( sourceTexture.encoding === THREE.sRGBEncoding );

0 commit comments

Comments
 (0)