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:

Type

float4

See also:

MATERIAL, shaders, shader parameters

 

► latest version online