Renderer.lightmapTilingOffset 光照贴图平铺偏移

var lightmapTilingOffset : Vector4

Description描述

The tiling & offset used for lightmap.

用于光照贴图的平铺和偏移值。

A scene can have several lightmaps stored in it, and Renderer can use one of those lightmaps. This makes it possible to use the same material on multiple objects, while each object can refer to a different lightmap or different portion of the same lightmap.

一个场景可以储存多个光照贴图,并且渲染器可以使用这些光照贴图其中之一。这使得有可能在多个物体使用相同的材质,虽然每个物体可以引用不同的光照贴图或同一光照的不同部分。

The vector's x and y refers to the lightmap scale, while z and w refers to the lightmap offset.

vector的x和y归为光照贴图的比例,z和w归为光照贴图的偏移。

参见: LightmapSettings类, lightmapIndex属性

Page last updated: 2010-12-17