Renderer.realtimeLightmapScaleOffset

Switch to Manual
public Vector4 realtimeLightmapScaleOffset ;

Description

用于实时光照贴图的 UV 缩放和偏移。

lightmapScaleOffset 相同,但用于实时光照贴图。

实时光照贴图是一种纹理图集,多个渲染器可以使用同一光照贴图的不同部分。

矢量的 x 和 y 表示 UV 缩放,z 和 w 表示 UV 偏移。

Note: this property is only serialized when building the player. In all the other cases it's the responsibility of the Unity lightmapping system (or a custom script that brings external lightmapping data) to set it when the Scene loads or playmode is entered.

另请参阅:LightmapSettings 类、lightmapScaleOffset 属性、ShaderLab properties