CullMode
Defines the culling mode for rendering.
| Type | Name | Interface Description |
|---|---|---|
| Enum | Back | • Function: Back-facing faces are culled. |
| Enum | Front | • Function: Front-facing faces are culled. |
| Enum | FrontAndBack | • Function: Both front and back-facing faces are culled. |
| Enum | None | • Function: No faces are culled. |
Examples
Back
let value = APJS.CullMode.Back;
Front
let value = APJS.CullMode.Front;
FrontAndBack
let value = APJS.CullMode.FrontAndBack;
None
let value = APJS.CullMode.None;
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use CullMode here
}
onUpdate(deltaTime: number) {
}
}