Struct LightmapParameters

Source
pub struct LightmapParameters {
Show 19 fields pub AOAntiAliasingSamples: i32, pub AOQuality: i32, pub antiAliasingSamples: i32, pub backFaceTolerance: f32, pub bakedLightmapTag: i32, pub blurRadius: i32, pub clusterResolution: f32, pub directLightQuality: i32, pub edgeStitching: i32, pub irradianceBudget: i32, pub irradianceQuality: i32, pub isTransparent: i32, pub m_Name: String, pub modellingTolerance: f32, pub resolution: f32, pub systemTag: i32, pub limitLightmapCount: Option<bool>, pub maxLightmapCount: Option<i32>, pub pushoff: Option<f32>,
}
Expand description

LightmapParameters is a class of the Unity engine since version 5.0.0f4. Exert from Unity’s scripting documentation: Configures how Unity bakes lighting and can be assigned to a LightingSettings instance or asset. Note that Unity’s built-in Lightmap Parameters Assets are read-only.

See Also: LightmapParameters.SetLightmapParametersForLightingSettings.

Fields§

§AOAntiAliasingSamples: i32

The maximum number of times to supersample a texel to reduce aliasing in AO.

§AOQuality: i32

The number of rays to cast for computing ambient occlusion.

§antiAliasingSamples: i32

The maximum number of times to supersample a texel to reduce aliasing.

§backFaceTolerance: f32

The percentage of rays shot from a ray origin that must hit front faces to be considered usable.

§bakedLightmapTag: i32

BakedLightmapTag is an integer that affects the assignment to baked lightmaps. Objects with different values for bakedLightmapTag are guaranteed to not be assigned to the same lightmap even if the other baking parameters are the same.

§blurRadius: i32

The radius (in texels) of the post-processing filter that blurs baked direct lighting.

§clusterResolution: f32

Controls the resolution at which Enlighten Realtime Global Illumination stores and can transfer input light.

§directLightQuality: i32

The number of rays used for lights with an area. Allows for accurate soft shadowing.

§edgeStitching: i32§irradianceBudget: i32

The amount of data used for Enlighten Realtime Global Illumination texels. Specifies how detailed view of the Scene a texel has. Small values mean more averaged out lighting.

§irradianceQuality: i32

The number of rays to cast for computing irradiance form factors.

§isTransparent: i32

If enabled, the object appears transparent during GlobalIllumination lighting calculations.

§m_Name: String

The name of the object.

§modellingTolerance: f32

Maximum size of gaps that can be ignored for GI (multiplier on pixel size).

§resolution: f32

The texel resolution per meter used for real-time lightmaps. This value is multiplied by LightingSettings.indirectResolution.

§systemTag: i32

System tag is an integer identifier. It lets you force an object into a different Enlighten Realtime Global Illumination system even though all the other parameters are the same.

§limitLightmapCount: Option<bool>

If enabled, objects sharing the same lightmap parameters will be packed into LightmapParameters.maxLightmapCount lightmaps. bool: (2019.1.0b1 - 2022.3.2f1)

§maxLightmapCount: Option<i32>

The maximum number of lightmaps created for objects sharing the same lightmap parameters. This property is ignored if LightmapParameters.limitLightmapCount is false. i32: (2019.1.0b1 - 2022.3.2f1)

§pushoff: Option<f32>

The distance to offset the ray origin from the geometry when performing ray tracing, in modelling units. Unity applies the offset to all baked lighting: direct lighting, indirect lighting, environment lighting and ambient occlusion. f32: (5.0.1f1 - 2022.3.2f1)

Trait Implementations§

Source§

impl Debug for LightmapParameters

Source§

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

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

impl<'de> Deserialize<'de> for LightmapParameters

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 LightmapParameters

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> Same for T

Source§

type Output = T

Should always be Self
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>,