|
@@ -350,6 +350,8 @@ THREE.WebGLState = function ( gl, extensions, paramThreeToGL ) {
|
|
|
|
|
|
this.setDepthWrite = function ( depthWrite ) {
|
|
|
|
|
|
+ // TODO: Rename to setDepthMask
|
|
|
+
|
|
|
if ( currentDepthWrite !== depthWrite ) {
|
|
|
|
|
|
gl.depthMask( depthWrite );
|
|
@@ -361,6 +363,8 @@ THREE.WebGLState = function ( gl, extensions, paramThreeToGL ) {
|
|
|
|
|
|
this.setColorWrite = function ( colorWrite ) {
|
|
|
|
|
|
+ // TODO: Rename to setColorMask
|
|
|
+
|
|
|
if ( currentColorWrite !== colorWrite ) {
|
|
|
|
|
|
gl.colorMask( colorWrite, colorWrite, colorWrite, colorWrite );
|
|
@@ -418,6 +422,8 @@ THREE.WebGLState = function ( gl, extensions, paramThreeToGL ) {
|
|
|
|
|
|
this.setStencilWrite = function ( stencilWrite ) {
|
|
|
|
|
|
+ // TODO: Rename to setStencilMask
|
|
|
+
|
|
|
if ( currentStencilWrite !== stencilWrite ) {
|
|
|
|
|
|
gl.stencilMask( stencilWrite );
|