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)