فهرست منبع

Typescript: Fix outdated stencil properties of Material

Ivan Dagès 4 سال پیش
والد
کامیت
268a9962eb
1فایلهای تغییر یافته به همراه21 افزوده شده و 15 حذف شده
  1. 21 15
      src/materials/Material.d.ts

+ 21 - 15
src/materials/Material.d.ts

@@ -173,45 +173,51 @@ export class Material extends EventDispatcher {
 	id: number;
 
 	/**
-   * Whether rendering this material has any effect on the stencil buffer. Default is *false*.
+	 * Whether rendering this material has any effect on the stencil buffer. Default is *false*.
 	 * @default false
-   */
+	 */
 	stencilWrite: boolean;
 
 	/**
-   * The stencil comparison function to use. Default is {@link AlwaysStencilFunc}. See stencil operation constants for all possible values.
+	 * The stencil comparison function to use. Default is {@link AlwaysStencilFunc}. See stencil operation constants for all possible values.
 	 * @default THREE.AlwaysStencilFunc
-   */
+	 */
 	stencilFunc: StencilFunc;
 
 	/**
-   * The value to use when performing stencil comparisons or stencil operations. Default is *0*.
+	 * The value to use when performing stencil comparisons or stencil operations. Default is *0*.
 	 * @default 0
-   */
+	 */
 	stencilRef: number;
 
 	/**
-   * The bit mask to use when comparing against or writing to the stencil buffer. Default is *0xFF*.
+	 * The bit mask to use when writing to the stencil buffer. Default is *0xFF*.
 	 * @default 0xff
-   */
-	stencilMask: number;
+	 */
+	stencilWriteMask: number;
 
 	/**
-   * Which stencil operation to perform when the comparison function returns false. Default is {@link KeepStencilOp}. See the stencil operation constants for all possible values.
+	 * The bit mask to use when comparing against the stencil buffer. Default is *0xFF*.
+	 * @default 0xff
+	 */
+	stencilFuncMask: number;
+
+	/**
+	 * Which stencil operation to perform when the comparison function returns false. Default is {@link KeepStencilOp}. See the stencil operation constants for all possible values.
 	 * @default THREE.KeepStencilOp
-   */
+	 */
 	stencilFail: StencilOp;
 
 	/**
-   * Which stencil operation to perform when the comparison function returns true but the depth test fails. Default is {@link KeepStencilOp}. See the stencil operation constants for all possible values.
+	 * Which stencil operation to perform when the comparison function returns true but the depth test fails. Default is {@link KeepStencilOp}. See the stencil operation constants for all possible values.
 	 * @default THREE.KeepStencilOp
-   */
+	 */
 	stencilZFail: StencilOp;
 
 	/**
-   * Which stencil operation to perform when the comparison function returns true and the depth test passes. Default is {@link KeepStencilOp}. See the stencil operation constants for all possible values.
+	 * Which stencil operation to perform when the comparison function returns true and the depth test passes. Default is {@link KeepStencilOp}. See the stencil operation constants for all possible values.
 	 * @default THREE.KeepStencilOp
-   */
+	 */
 	stencilZPass: StencilOp;
 
 	/**