Browse Source

Merge pull request #12121 from oppenfuture/sprite

Fix sprite renderer bug
Mr.doob 8 years ago
parent
commit
b4d0a8fd7e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/renderers/webgl/WebGLSpriteRenderer.js

+ 1 - 0
src/renderers/webgl/WebGLSpriteRenderer.js

@@ -225,6 +225,7 @@ function WebGLSpriteRenderer( renderer, gl, state, textures, capabilities ) {
 			state.setBlending( material.blending, material.blendEquation, material.blendSrc, material.blendDst, material.blendEquationAlpha, material.blendSrcAlpha, material.blendDstAlpha, material.premultipliedAlpha );
 			state.buffers.depth.setTest( material.depthTest );
 			state.buffers.depth.setMask( material.depthWrite );
+			state.buffers.color.setMask( material.colorWrite );
 
 			textures.setTexture2D( material.map || texture, 0 );