Shadow
Description
This component controls how the entity handles shadows.
Properties
Property | Type | Default | Description |
---|---|---|---|
castShadow | boolean | false | Indicates if an entity can cast shadows. |
receiveShadow | boolean | false | Indicates if an entity can receive shadows. |
Functions
Get
Returns a read-only reference.
Example
ecs.Shadow.get(world, component.eid)