Skip to content

sunPosition

uniform vec3 sunPosition;

This value stores the position of the sun in view space. The length of this value is always 100, as it represents a position not a direction. This value can be converted to screen space directly to get the screen space position of the sun.