Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b514505 commit a6fdafaCopy full SHA for a6fdafa
examples/js/pmrem/PMREMGenerator.js
@@ -11,10 +11,10 @@
11
* by this class.
12
*/
13
14
-THREE.PMREMGenerator = function( sourceTexture, resolution ) {
+THREE.PMREMGenerator = function( sourceTexture ) {
15
16
this.sourceTexture = sourceTexture;
17
- this.resolution = ( resolution !== undefined ) ? resolution : 256;
+ this.resolution = 256; // NODE: 256 is currently hard coded in the glsl code for performance reasons
18
19
var monotonicEncoding = ( sourceTexture.encoding === THREE.LinearEncoding ) ||
20
( sourceTexture.encoding === THREE.GammaEncoding ) || ( sourceTexture.encoding === THREE.sRGBEncoding );
0 commit comments