vecLight

A vector set from the sum of the entities' red, green, blue values and the environment (PRV) light.

Algorithm

vecLight.x = float(entity.red + prv.red)/255.0;
vecLight.y = float(entity.green + prv.green)/255.0;
vecLight.z = float(entity.blue + prv.blue)/255.0;
vecLight.w = entity transparency;

Type

float4

See also:

MATERIAL, shaders, shader parameters

► latest version online