Pass
Type | Name | Interface Description |
---|---|---|
Variables | depthTest: boolean | Depth Test Switch |
Example
mainPass.depthTest = false;
Type | Name | Interface Description |
---|---|---|
Variables | depthWrite: boolean | Depth Write Switch |
Example
mainPass.depthWrite = false;
Type | Name | Interface Description |
---|---|---|
Variables | depthFunction: DepthFunction | Depth Test Function |
Example
mainPass.depthFunction = APJS.DepthFunction.Greater;
Type | Name | Interface Description |
---|---|---|
Variables | colorMask: ColorMask | Color Mask |
Example
let mask = 0;
mask |= APJS.ColorMask.R;
mask |= APJS.ColorMask.G;
mask |= APJS.ColorMask.B;
mask |= APJS.ColorMask.A;
mainPass.colorMask = mask;
Type | Name | Interface Description |
---|---|---|
Variables | cullMode: CullMode | Face Culling Mode |
Example
mainPass.cullMode = APJS.CullMode.Back;
Type | Name | Interface Description |
---|---|---|
Variables | stencilState: StencilState | Template Test |
Example
mainPass.stencilState.enable = true;
mainPass.stencilState.failOperation = APJS.StencilOperation.Keep; mainPass.stencilState.passOperation = APJS.StencilOperation.Replace;
mainPass.stencilState.compareFunction = APJS.StencilFunction.Always;
mainPass.stencilState.writeMask = 42;
mainPass.stencilState.referenceValue = 42;