CameraClearType
Specifies what to clear when a camera renders.
| Type | Name | Interface Description |
|---|---|---|
| Enum | Color | • Function: Clear color only. |
| Enum | ColorDepth | • Function: Clear color and depth. |
| Enum | ColorDepthStencil | • Function: Clear color, depth and stencil. |
| Enum | ColorStencil | • Function: Clear color and stencil. |
| Enum | Depth | • Function: Clear depth only. |
| Enum | DepthStencil | • Function: Clear depth and stencil. |
| Enum | Dont | • Function: Clear nothing. |
| Enum | Stencil | • Function: Clear stencil only. |
| Enum | Texture | • Function: Clear with a texture. |
| Enum | TextureDepth | • Function: Clear depth with a texture. |
Examples
Color
let value = APJS.CameraClearType.Color;
ColorDepth
let value = APJS.CameraClearType.ColorDepth;
ColorDepthStencil
let value = APJS.CameraClearType.ColorDepthStencil;
ColorStencil
let value = APJS.CameraClearType.ColorStencil;
Depth
let value = APJS.CameraClearType.Depth;
DepthStencil
let value = APJS.CameraClearType.DepthStencil;
Dont
let value = APJS.CameraClearType.Dont;
Stencil
let value = APJS.CameraClearType.Stencil;
Texture
let value = APJS.CameraClearType.Texture;
TextureDepth
let value = APJS.CameraClearType.TextureDepth;
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use CameraClearType here
}
onUpdate(deltaTime: number) {
}
}