pub struct UnityAmbient {
pub mode: i64,
pub sky: [f32; 4],
pub equator: [f32; 4],
pub ground: [f32; 4],
pub intensity: f32,
pub probe: Option<[f32; 27]>,
}Expand description
A scene’s ambient lighting as RenderSettings stores it: mode (m_AmbientMode: 0 skybox, 1 trilight, a gradient
of the sky, equator and ground colours, 3 flat, the sky colour alone, 4 custom), the three colours as stored,
intensity (m_AmbientIntensity) and the ambient probe as stored (m_AmbientProbe, Unity’s SphericalHarmonicsL2:
nine coefficients per channel, red 0..8, green 9..17, blue 18..26; None when the RenderSettings store none). The
probe is what the editor last generated: all zeros when it never did, and not necessarily from the colours stored
beside it.
Fields§
§mode: i64m_AmbientMode.
sky: [f32; 4]m_AmbientSkyColor, RGBA.
equator: [f32; 4]m_AmbientEquatorColor, RGBA.
ground: [f32; 4]m_AmbientGroundColor, RGBA.
intensity: f32m_AmbientIntensity.
probe: Option<[f32; 27]>m_AmbientProbe: 27 coefficients, red then green then blue; None when none is stored.