Struct AmbientLight
Ambient light.
Namespace: Unity.Tiny.Rendering
Syntax
public struct AmbientLight : IComponentData
Fields
ambientProbe
Declaration
public SHCoefficients ambientProbe
Field Value
Type | Description |
---|---|
SHCoefficients |
ambientSkyColor
Declaration
public float3 ambientSkyColor
Field Value
Type | Description |
---|---|
float3 |
intensity
Declaration
public float intensity
Field Value
Type | Description |
---|---|
Single |
Methods
SetAmbientColor(float3)
Set ambient color (flat).
Declaration
public void SetAmbientColor(float3 color)
Parameters
Type | Name | Description |
---|---|---|
float3 | color | Ambient color in linear space. |
SetAmbientColor(float3, float3, float3)
Set ambient color (tricolor).
Declaration
public void SetAmbientColor(float3 sky, float3 equator, float3 ground)
Parameters
Type | Name | Description |
---|---|---|
float3 | sky | Sky color in linear space. |
float3 | equator | Equator color in linear space. |
float3 | ground | Ground color in linear space. |