@babylonjs/core
Version:
Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.
63 lines (62 loc) • 1.67 kB
TypeScript
/**
* Interface defining the properties of the stencil state.
*/
export interface IStencilStateProperties {
/**
* Whether the stencil test is enabled or not.
*/
enabled: boolean;
/**
* The stencil mask to use for writing.
*/
mask: number;
/**
* The stencil mask to use for reading.
*/
funcMask: number;
/**
* The reference value to use for the stencil test.
*/
funcRef: number;
/**
* The stencil comparison function to use for front faces.
*/
func: number;
/**
* The operation to perform when both the stencil and depth tests pass for front faces.
*/
opStencilDepthPass: number;
/**
* The operation to perform when the stencil test fails for front faces.
*/
opStencilFail: number;
/**
* The operation to perform when the stencil test passes but the depth test fails for front faces.
*/
opDepthFail: number;
/**
* The stencil comparison function to use for back faces.
*/
backFunc: number;
/**
* The operation to perform when both the stencil and depth tests pass for back faces.
*/
backOpStencilDepthPass: number;
/**
* The operation to perform when the stencil test fails for back faces.
*/
backOpStencilFail: number;
/**
* The operation to perform when the stencil test passes but the depth test fails for back faces.
*/
backOpDepthFail: number;
}
/**
* Interface defining the stencil state.
*/
export interface IStencilState extends IStencilStateProperties {
/**
* Resets the stencil state to default values.
*/
reset(): void;
}