Bladeren bron

Merge pull request #20118 from WestLangley/dev_src_stencil

Source: clean up stencil buffer settings
Mr.doob 5 jaren geleden
bovenliggende
commit
3c82a387fc
2 gewijzigde bestanden met toevoegingen van 3 en 4 verwijderingen
  1. 1 2
      src/extras/PMREMGenerator.js
  2. 2 2
      src/renderers/webgl/WebGLShadowMap.js

+ 1 - 2
src/extras/PMREMGenerator.js

@@ -229,8 +229,7 @@ class PMREMGenerator {
 			type: UnsignedByteType,
 			format: RGBEFormat,
 			encoding: _isLDR( texture ) ? texture.encoding : RGBEEncoding,
-			depthBuffer: false,
-			stencilBuffer: false
+			depthBuffer: false
 		};
 
 		const cubeUVRenderTarget = _createRenderTarget( params );

+ 2 - 2
src/renderers/webgl/WebGLShadowMap.js

@@ -136,7 +136,7 @@ function WebGLShadowMap( _renderer, _objects, maxTextureSize ) {
 
 			if ( shadow.map === null && ! shadow.isPointLightShadow && this.type === VSMShadowMap ) {
 
-				const pars = { minFilter: LinearFilter, magFilter: LinearFilter, format: RGBAFormat, stencilBuffer: false };
+				const pars = { minFilter: LinearFilter, magFilter: LinearFilter, format: RGBAFormat };
 
 				shadow.map = new WebGLRenderTarget( _shadowMapSize.x, _shadowMapSize.y, pars );
 				shadow.map.texture.name = light.name + ".shadowMap";
@@ -149,7 +149,7 @@ function WebGLShadowMap( _renderer, _objects, maxTextureSize ) {
 
 			if ( shadow.map === null ) {
 
-				const pars = { minFilter: NearestFilter, magFilter: NearestFilter, format: RGBAFormat, stencilBuffer: false };
+				const pars = { minFilter: NearestFilter, magFilter: NearestFilter, format: RGBAFormat };
 
 				shadow.map = new WebGLRenderTarget( _shadowMapSize.x, _shadowMapSize.y, pars );
 				shadow.map.texture.name = light.name + ".shadowMap";