RaycastHit.lightmapCoord 光照图坐标

var lightmapCoord : Vector2

Description描述

The uv lightmap coordinate at the impact point.

所在碰撞点的光照图UV坐标。

This can be used for sampling the lightmap and setting the sampled color value as the material color of a moving object to make it roughly match the baked lighting. This is simply the textureCoord2 transformed by lightmapTilingOffset.

这可以用于光照图取样和设置颜色取样值作为一个移动的物体材质颜色,使大致匹配烘焙光照。这就是textureCoord2lightmapTilingOffset转换的。

Page last updated: 2011-3-13