pub struct LightProbes {
pub m_Name: String,
pub bakedCoefficients: Option<Vec<LightmapData>>,
pub bakedPositions: Option<Vec<Vector3f>>,
pub hullRays: Option<Vec<Vector3f>>,
pub m_BakedCoefficients: Option<Vec<SphericalHarmonicsL2>>,
pub m_BakedLightOcclusion: Option<Vec<LightProbeOcclusion>>,
pub m_Data: Option<LightProbeData>,
pub tetrahedra: Option<Vec<Tetrahedron>>,
}Expand description
LightProbes is a class of the Unity engine since version 3.5.0. Exert from Unity’s scripting documentation: Stores light probe data for all currently loaded Scenes. The data includes: probe positions, Spherical Harmonics (SH) coefficients and the tetrahedral tessellation.You can modify the coefficients and update the tetrahedral tessellation at runtime. You can also swap the entire LightProbes object for a different pre-baked one using LightmapSettings.lightProbes.See Also: Light Probes in the Unity Manual, LightmapSettings, ReceiveGI.
Fields§
§m_Name: StringThe name of the object.
bakedCoefficients: Option<Vec<LightmapData>>Vec
bakedPositions: Option<Vec<Vector3f>>Vec
hullRays: Option<Vec<Vector3f>>Vec
m_BakedCoefficients: Option<Vec<SphericalHarmonicsL2>>Vec
m_BakedLightOcclusion: Option<Vec<LightProbeOcclusion>>Vec
m_Data: Option<LightProbeData>LightProbeData: (5.0.0f4 - 2022.3.2f1)
tetrahedra: Option<Vec<Tetrahedron>>Vec
Trait Implementations§
Source§impl Debug for LightProbes
impl Debug for LightProbes
Source§impl<'de> Deserialize<'de> for LightProbes
impl<'de> Deserialize<'de> for LightProbes
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LightProbes
impl RefUnwindSafe for LightProbes
impl Send for LightProbes
impl Sync for LightProbes
impl Unpin for LightProbes
impl UnwindSafe for LightProbes
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more