Version: 2019.2

LightmapEditorSettings

class in UnityEditor

Switch to Manual

Description

Various settings for the bake.

The bake can be started via Lightmapping class.

See Also: Lightmapping.

Static Variables

aoExponentDirectAmbient occlusion (AO) for direct lighting.
aoExponentIndirectAmbient occlusion (AO) for indirect lighting.
aoMaxDistanceBeyond this distance a ray is considered to be unoccluded.
bakeResolutionSpecifies the resolution of the Baked lightmap in texels per world unit. Specifying higher resolutions can significantly increase the time it takes to bake the lightmap. The default value is one texel per world unit. The minimum value is 0.0001.
bouncesSpecifies the maximum number of bounces the lightmapper computes for indirect light. The default value is one. The range is 0 to 4.
directSampleCountSpecifies the number of samples the Progressive lightmapper uses for direct lighting calculations. The default value is 32. The minimum value is 1.
enableAmbientOcclusionEnable baked ambient occlusion (AO).
filteringAtrousPositionSigmaAOSpecifies the threshold the Progressive lightmapper uses to filter ambient occlusion stored in the lightmap when using A-Trous filter. The default value is 1. The value range is 0 to 2.
filteringAtrousPositionSigmaDirectSpecifies the threshold the Progressive lightmapper uses to filter direct light stored in the lightmap when using A-Trous filter. The default value is 0.5. The value range is 0 to 2.
filteringAtrousPositionSigmaIndirectSpecifies the threshold the Progressive lightmapper uses to filter indirect light stored in the lightmap when using A-Trous filter. The default value is 2. The value range is 0 to 2.
filteringGaussRadiusAOSpecifies the radius the Progressive lightmapper uses to filter for ambient occlusion in the lightmap when using Gaussian filter. The default value is 2. The value range is 0 to 5.
filteringGaussRadiusDirectSpecifies the radius the Progressive lightmapper uses to filter for direct light stored in the lightmap when using Gaussian filter. The default value is one. The value range is 0 to 5.
filteringGaussRadiusIndirectSpecifies the radius the Progressive lightmapper used to filter for indirect light stored in the lightmap when using Gaussian filter. The default value is 5. The value range is 0 to 5.
filteringModeSpecifies the method used by the Progressive lightmapper to reduce noise in baked lightmaps.
filterTypeAOConfigure a filter kernel for the ambient occlusion target.
filterTypeDirectConfigure a filter kernel for the direct light target.
filterTypeIndirectConfigure a filter kernel for the indirect light target.
indirectSampleCountSpecifies the number of samples the Progressive lightmapper uses for indirect lighting calculations. The default value is 500. The minimum value is 10.
lightmapperDetermines which backend to use for baking lightmaps.
lightmapsModeNonDirectional or CombinedDirectional lightmaps rendering mode.
maxAtlasSizeThe maximum size of an individual lightmap texture.
mixedBakeModeIndicates the Mixed mode that is used to bake the LightmapBakeType.Mixed lights, irrelevant for realtime and baked lights.
paddingTexel separation between shapes.
prioritizeViewSpecifies whether the Progressive lightmapper should prioritize baking texels within the Scene view. The default value is true.
realtimeResolutionLightmap resolution in texels per world unit. Defines the resolution of Realtime GI if enabled. If Baked GI is enabled, this defines the resolution used for indirect lighting. Higher resolution may take a long time to bake.
reflectionCubemapCompressionDetermines how Unity will compress baked reflection cubemap.
samplingDetermines which sampling strategy to use for baking lightmaps with the Progressive Lightmapper.
textureCompressionWhether to use texture compression on the generated lightmaps.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961