ShadowMaterial
ecs.ShadowMaterial
Description
The ShadowMaterial component defines the shadow behavior of an entity.
Functions
See component schema.
Schema
Property | Type | Description |
---|---|---|
r | Number | Red channel value of the material [0...255] |
g | Number | Green channel value of the material [0...255] |
b | Number | Blue channel value of the material [0...255] |
opacity | Number | Overall alpha/transparency of the material [0...1] |
side | String | Which sides of faces will be rendered. Choose from front , back , or double . |
depthTest | Boolean | Whether to test depth when rendering this material (true by default) |
depthWrite | Boolean | Whether rendering this material impacts the depth buffer (true by default) |