Garrett Johnson пре 5 година
родитељ
комит
dd7edc3728
2 измењених фајлова са 8 додато и 3 уклоњено
  1. 7 2
      docs/api/en/materials/Material.html
  2. 1 1
      src/materials/Material.js

+ 7 - 2
docs/api/en/materials/Material.html

@@ -128,6 +128,11 @@
 		Whether rendering this material has any effect on the stencil buffer. Default is *false*.
 		</p>
 
+		<h3>[property:Boolean stencilWriteMask]</h3>
+		<p>
+		The bit mask to use when writing to the stencil buffer. Default is *0xFF*.
+		</p>
+
 		<h3>[property:Boolean stencilFunc]</h3>
 		<p>
 		The stencil comparison function to use. Default is [page:Materials AlwaysStencilFunc]. See stencil function [page:Materials constants] for all possible values.
@@ -138,9 +143,9 @@
 		The value to use when performing stencil comparisons or stencil operations. Default is *0*.
 		</p>
 
-		<h3>[property:Boolean stencilMask]</h3>
+		<h3>[property:Boolean stencilFuncMask]</h3>
 		<p>
-		The bit mask to use when comparing against or writing to the stencil buffer. Default is *0xFF*.
+		The bit mask to use when comparing against the stencil buffer. Default is *0xFF*.
 		</p>
 
 		<h3>[property:Integer stencilFail]</h3>

+ 1 - 1
src/materials/Material.js

@@ -43,8 +43,8 @@ function Material() {
 
 	this.stencilWriteMask = 0xff;
 	this.stencilFunc = AlwaysStencilFunc;
-	this.stencilFuncMask = 0xff;
 	this.stencilRef = 0;
+	this.stencilFuncMask = 0xff;
 	this.stencilFail = KeepStencilOp;
 	this.stencilZFail = KeepStencilOp;
 	this.stencilZPass = KeepStencilOp;