Struct OmniLight
Omnidirectional light, such as a light bulb or a candle.
struct OmniLight
;
An Omnidirectional light is a type of Light that emits light in all directions. The light is attenuated by distance and this attenuation can be configured by changing its energy, radius, and attenuation parameters.
Properties
| Name | Type | Description |
|---|---|---|
omniAttenuation[get, set]
|
double | The light's attenuation (drop-off) curve. A number of presets are available in the Inspector by right-clicking the curve. |
omniRange[get, set]
|
double | The light's radius. |
omniShadowDetail[get, set]
|
OmniLight | See shadowdetail.
|
omniShadowMode[get, set]
|
OmniLight | See shadowmode.
|
Methods
| Name | Description |
|---|---|
getShadowDetail
|
|
getShadowMode
|
|
setShadowDetail
|
|
setShadowMode
|
Enums
| Name | Description |
|---|---|
Constants
|
|
ShadowDetail
|
|
ShadowMode
|