LightDirectionX()

Syntax

Result = LightDirectionX(#Light [, Mode])
Description
Returns the 'x' direction vector of the light.

Parameters

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

Return value

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

See Also

LightDirectionY(), LightDirectionZ(), LightDirection()

Supported OS

All

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