LightmapParameters

class in UnityEditor

Cambiar al Manual

Descripción

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.

Variables

antiAliasingSamplesThe maximum number of times to supersample a texel to reduce aliasing.
AOAntiAliasingSamplesThe maximum number of times to supersample a texel to reduce aliasing in AO.
AOQualityThe number of rays to cast for computing ambient occlusion.
backFaceToleranceThe percentage of rays shot from a ray origin that must hit front faces to be considered usable.
bakedLightmapTagBakedLightmapTag 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.
blurRadiusThe radius (in texels) of the post-processing filter that blurs baked direct lighting.
clusterResolutionControls the resolution at which Enlighten stores and can transfer input light.
directLightQualityThe number of rays used for lights with an area. Allows for accurate soft shadowing.
irradianceBudgetThe amount of data used for realtime GI texels. Specifies how detailed view of the Scene a texel has. Small values mean more averaged out lighting.
irradianceQualityThe number of rays to cast for computing irradiance form factors.
isTransparentIf enabled, the object appears transparent during GlobalIllumination lighting calculations.
limitLightmapCountIf enabled, objects sharing the same lightmap parameters will be packed into LightmapParameters.maxLightmapCount lightmaps.
maxLightmapCountThe maximum number of lightmaps that will be created for objects sharing the same lightmap parameters. This property is ignored if LightmapParameters.limitLightmapCount is false.
modellingToleranceMaximum size of gaps that can be ignored for GI (multiplier on pixel size).
pushoffThe 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.
resolutionThe texel resolution per meter used for realtime lightmaps. This value is multiplied by LightingSettings.indirectResolution.
stitchEdgesWhether pairs of edges should be stitched together.
systemTagSystem tag is an integer identifier. It lets you force an object into a different Enlighten system even though all the other parameters are the same.

Funciones Públicas

AssignToLightingSettingsAssignes itself to a LightingSettings instance or asset.

Funciones Estáticas

GetLightmapParametersForLightingSettingsReturns the assigned LightmapParameters for the specified LightingSettings.
SetLightmapParametersForLightingSettingsSets the LightmapParameters for the specified LightingSettings.