LightContributor class
Component that defines a light contributor in the 2D Radiance Cascades lighting system. It represents both lights and occluders/shadow casters.
public class LightContributor : MonoBehaviour
Public Members
| name | description |
|---|---|
| AnalyticalLightSettings { get; } | Settings specific to analytical lights (Circle, Line, and Freeform types). Has no effect on other light types. |
| Color { get; set; } | The color of the light emitted by this contributor. |
| Intensity { get; set; } | The brightness multiplier for this light source. |
| LightType { get; set; } | The type of light source this contributor represents. |
| SpriteLightSettings { get; } | Settings specific to sprite-based lights. Has no effect on other light types. |
| SetDirty() | Marks this light contributor as dirty, indicating that its state has been changed. Make sure to call this after modifying AnalyticalLightSettings or SpriteLightSettings from the code directly. |
See Also
- namespace Dim0v.RadianceCascades2D.Lights