vecSunPos
The position of the sun, calculated from
the sun azimuth and elevation angles (sun_angle), in a distance of 100,000
units from the entity resp. the level center.
vecSunDir
The normalized direction vector from the camera to the sun, calculated from
the view position and the sun azimuth and elevation angles.
vecSunColor
The color of the sun light.
vecSunColor.w is 1 when the sun is shining, otherwise 0.
Remarks:
- The Y and Z axes, as well as the red and blue components
of DirectX vectors are swapped due to the Acknex->DirectX
coordinate system conversion.
-
The sun position is also contained in the vecLightPos array.
Type
float4
See also:
MATERIAL, shaders, shader
parameters
► latest
version online