ShadowMode
Defines the shadow casting and receiving modes for a renderable object.
| Type | Name | Interface Description |
|---|---|---|
| Enum | Caster = 1 | • Function: The object casts shadows but does not receive them. |
| Enum | None = 0 | • Function: The object neither casts nor receives shadows. |
| Enum | Receiver = 2 | • Function: The object receives shadows but does not cast them. |
Examples
Caster = 1
let value = APJS.ShadowMode.Caster;
None = 0
let value = APJS.ShadowMode.None;
Receiver = 2
let value = APJS.ShadowMode.Receiver;
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use ShadowMode here
}
onUpdate(deltaTime: number) {
}
}