Omnidirectional light, such as a light bulb or a candle.
    public class OmniLight : Light

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.

Inheritance Chain

Constructors

    public OmniLight()

Properties

    public float OmniAttenuation { get; set; }

The light’s attenuation (drop-off) curve. A number of presets are available in the Inspector by right-clicking the curve.

    public float OmniRange { get; set; }

The light’s radius.

    public ShadowDetail OmniShadowDetail { get; set; }

See ShadowDetail.

    public ShadowMode OmniShadowMode { get; set; }

See ShadowMode.

Methods

    [Obsolete("GetShadowDetail is deprecated. Use the OmniShadowDetail property instead.")]
    public ShadowDetail GetShadowDetail()

Getter for OmniShadowDetail

    [Obsolete("GetShadowMode is deprecated. Use the OmniShadowMode property instead.")]
    public ShadowMode GetShadowMode()

Getter for OmniShadowMode

    [Obsolete("SetShadowDetail is deprecated. Use the OmniShadowDetail property instead.")]
    public void SetShadowDetail(ShadowDetail detail)

Setter for OmniShadowDetail

    [Obsolete("SetShadowMode is deprecated. Use the OmniShadowMode property instead.")]
    public void SetShadowMode(ShadowMode mode)

Setter for OmniShadowMode

Inner Types

ShadowDetail

Name Value Description
Vertical 0  
Horizontal 1  

ShadowMode

Name Value Description
DualParaboloid 0 Shadows are rendered to a dual-paraboloid texture. Faster than [constant SHADOW_CUBE], but lower-quality.
Cube 1 Shadows are rendered to a cubemap. Slower than [constant SHADOW_DUAL_PARABOLOID], but higher-quality.
Tags: