indirectResolution
Defines the density, in texels per world unit, that the Progressive Lightmapper uses to round the lightmap UV aspect ratio of non-square Terrains. (Editor only).
阅读时间1 分钟最后更新于 15 天前
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public float indirectResolution { get; set; }
Remarks
The default value is 2. Unity multiplies this value by LightmapParameters.resolution. On a Terrain whose width and length differ, the lightmapper rounds the aspect ratio of the Terrain's lightmap UVs to this density, so higher values keep the aspect ratio closer to the Terrain's real proportions. This value has no effect on square Terrains, on Mesh Renderers, or when baking with the Unity Compute light baker. To change the resolution of baked lightmaps, use LightingSettings.lightmapResolution.
When Enlighten Realtime Global Illumination is enabled, this value also sets the number of texels per world unit in the realtime lightmaps.
When Unity serializes this object as a Lighting Settings Asset, this property corresponds to the Indirect Resolution property in the Lighting Settings Asset Inspector.
LightingSettingsAdditional Resources: Lighting Settings Asset, LightingSettings.lightmapResolution.