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

NameTypeDescription
omniAttenuation[get, set] doubleThe light's attenuation (drop-off) curve. A number of presets are available in the Inspector by right-clicking the curve.
omniRange[get, set] doubleThe light's radius.
omniShadowDetail[get, set] OmniLight.ShadowDetailSee shadowdetail.
omniShadowMode[get, set] OmniLight.ShadowModeSee shadowmode.

Methods

NameDescription
getShadowDetail
getShadowMode
setShadowDetail
setShadowMode

Enums

NameDescription
Constants
ShadowDetail
ShadowMode