Version: 2021.2
言語: 日本語

Renderer.realtimeLightmapScaleOffset

マニュアルに切り替える
public Vector4 realtimeLightmapScaleOffset ;

説明

The UV scale & offset used for a real-time lightmap.

Same as lightmapScaleOffset, but for real-time lightmaps.

A real-time lightmap is a texture atlas and multiple Renderers can use different portions of the same lightmap.

z と w が UV オフセットを参照している間、ベクトルの x と y は 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 プロパティー.