Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

LightmapEditorSettings

Namespace: UnityEditor

Description

Various settings for the bake.

The bake can be started via Lightmapping class.

See Also: Lightmapping.

Static Variables

aoAmountControls how much Ambient Occlusion to blend into the Final Gather solution.
aoContrastControls the look of the transition from black to white.
aoMaxDistanceBeyond this distance a ray is considered to be unoccluded.
bounceBoostBoosts indirect light (Beast's diffuseBoost property, pow(colorComponent, (1.0 / diffuseBoost))).
bounceIntensityIndirect light intensity multiplier.
bouncesNumber of light bounces in the global illumination computation (with 0 meaning direct light only).
finalGatherContrastThresholdContrast threshold between neighbouring surface points.
finalGatherGradientThresholdControls how the irradiance gradient is used in the interpolation.
finalGatherInterpolationPointsThe number of final gather points to interpolate between.
finalGatherRaysNumber of rays used in the final gather integrator.
lastUsedResolutionLast used lightmap resolution (i.e. resolution of the lightmaps currently in the scene) in texels per world unit.
lockAtlasIf enabled, Beast atlasing won't be run and lightmap indices, tiling and offset won't be modified on Mesh Renderers.
maxAtlasHeightThe maximum height of an individual lightmap texture.
maxAtlasWidthThe maximum width of an individual lightmap texture.
paddingTexel separation between shapes.
qualityQuality of the bake.
resolutionLightmap resolution in texels per world unit.
skyLightColorSky light color.
skyLightIntensitySky light intensity.
textureCompressionWhether to use DXT1 compression on the generated lightmaps.