Sfoglia il codice sorgente

Disable stencil buffer by default

WestLangley 5 anni fa
parent
commit
7d140f803a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/renderers/WebGLRenderTarget.js

+ 1 - 1
src/renderers/WebGLRenderTarget.js

@@ -36,7 +36,7 @@ function WebGLRenderTarget( width, height, options ) {
 	this.texture.minFilter = options.minFilter !== undefined ? options.minFilter : LinearFilter;
 	this.texture.minFilter = options.minFilter !== undefined ? options.minFilter : LinearFilter;
 
 
 	this.depthBuffer = options.depthBuffer !== undefined ? options.depthBuffer : true;
 	this.depthBuffer = options.depthBuffer !== undefined ? options.depthBuffer : true;
-	this.stencilBuffer = options.stencilBuffer !== undefined ? options.stencilBuffer : true;
+	this.stencilBuffer = options.stencilBuffer !== undefined ? options.stencilBuffer : false;
 	this.depthTexture = options.depthTexture !== undefined ? options.depthTexture : null;
 	this.depthTexture = options.depthTexture !== undefined ? options.depthTexture : null;
 
 
 }
 }