提交 a6fdafa7 编写于 作者: B Ben Houston

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

上级 b5145051
......@@ -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 );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册