2
0
Эх сурвалжийг харах

WebGLRenderer: Make sure stencil works with transmission. (#27799)

Michael Herzog 1 жил өмнө
parent
commit
7e74e4cc64

+ 2 - 1
src/renderers/WebGLRenderer.js

@@ -1418,7 +1418,8 @@ class WebGLRenderer {
 					generateMipmaps: true,
 					type: ( extensions.has( 'EXT_color_buffer_half_float' ) || extensions.has( 'EXT_color_buffer_float' ) ) ? HalfFloatType : UnsignedByteType,
 					minFilter: LinearMipmapLinearFilter,
-					samples: 4
+					samples: 4,
+					stencil: stencil
 				} );
 
 				// debug