LightDirectionZ()

语法

Result = LightDirectionZ(#Light [, Mode])
概要
Returns the 'z' direction vector of the light.

参数

#Light The light to use.
Mode (optional) The mode to get the 'z' direction vector. It can be one of the following value:
  #PB_Absolute: get the absolute 'z' direction vector of the light in the world (default).
  #PB_Relative: get the 'z' direction vector of the light relative to its parent.

返回值

The 'z' direction vector of the light. This value is always between -1.0 and 1.0.

参阅

LightDirectionX(), LightDirectionY(), LightDirection()

已支持操作系统

所有

<- LightDirectionY() - Light Index - LightID() ->