SphericalHarmonicsL2

Struct SphericalHarmonicsL2 

Source
pub struct SphericalHarmonicsL2 {
Show 27 fields pub sh_10_: Option<f32>, pub sh_11_: Option<f32>, pub sh_12_: Option<f32>, pub sh_13_: Option<f32>, pub sh_14_: Option<f32>, pub sh_15_: Option<f32>, pub sh_16_: Option<f32>, pub sh_17_: Option<f32>, pub sh_18_: Option<f32>, pub sh_19_: Option<f32>, pub sh_20_: Option<f32>, pub sh_21_: Option<f32>, pub sh_22_: Option<f32>, pub sh_23_: Option<f32>, pub sh_24_: Option<f32>, pub sh_25_: Option<f32>, pub sh_26_: Option<f32>, pub sh__0_: Option<f32>, pub sh__1_: Option<f32>, pub sh__2_: Option<f32>, pub sh__3_: Option<f32>, pub sh__4_: Option<f32>, pub sh__5_: Option<f32>, pub sh__6_: Option<f32>, pub sh__7_: Option<f32>, pub sh__8_: Option<f32>, pub sh__9_: Option<f32>,
}
Expand description

SphericalHarmonicsL2 is a sub class of the Unity engine since version 5.0.0f4. Exert from Unity’s scripting documentation: Spherical harmonics up to the second order (3 bands, 9 coefficients). Spherical harmonics (SH) represent a function or signal over directions, and are commonly used in computer graphics to efficiently evaluate smooth lighting. Unity uses them for LightProbes and environment lighting.L2 spherical harmonics is composed of 9 coefficients for each color channel.See Also: RenderSettings.ambientMode, RenderSettings.ambientProbe, LightProbes.

Fields§

§sh_10_: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§sh_11_: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§sh_12_: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§sh_13_: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§sh_14_: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§sh_15_: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§sh_16_: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§sh_17_: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§sh_18_: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§sh_19_: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§sh_20_: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§sh_21_: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§sh_22_: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§sh_23_: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§sh_24_: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§sh_25_: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§sh_26_: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§sh__0_: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§sh__1_: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§sh__2_: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§sh__3_: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§sh__4_: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§sh__5_: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§sh__6_: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§sh__7_: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§sh__8_: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

§sh__9_: Option<f32>

f32: (5.0.0f4 - 2022.3.2f1)

Trait Implementations§

Source§

impl Debug for SphericalHarmonicsL2

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for SphericalHarmonicsL2

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for SphericalHarmonicsL2

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,