iLights

The current number of lights in the vecLightPos array, between 0 and 8. A7.82

Type:

int, read-only

Example:

int iLights;
...
for (int i=0; i<iLights; i++)  // Add dynamic lights
Out.Ambient.xyz += DoLight(P,N,i)*0.5*vecDiffuse;

See also:

MATERIAL, shaders, shader variables, vecLightPos

► latest version online