Homeworld Effects Manual: modifyAddColor()

modifyAddColor(int handle, RGB color)

Legal values: handle must be a valid handle to an object.

Modifies the color added to a texture.

modifyAddColor() adds an amount of red, green, and blue to every pixel in the textures on an object. It works just like setAddColor() except its color information is in an RGB, not three floats. Also, it modifies an attribute for an existing object, while setAddColor() sets the attribute for objects yet to be created.

setAddColor() is disabled by setLighting(1).

setAddColor(0,0,0)

setAddColor(1,0,0)

setAddColor(0.5,0.5,0.5)

setAddColor(0.0,0.2,.14159)