Homeworld Effects Manual: setAlphaMode()

setAlphaMode(int handle, float value)

Useful values: 0, 1

Default value: 1

Enables additive alpha mode.

If value is 1, the transparency of the object is determined by the ALPHA layer of its texture, then by the luminence of the TEX layer. Dark portions of the texture appear more transparent, while brighter section appear more solid. If several semi-transparent objects overlap, they are blended additively, i.e., the overlapping portions appear brighter.

If value is anything but 1, the transparency of the object is determined solely by the ALPHA layer of its texture. Overlapping objects do not get brighter. modifyAlphaMode() works just like setAlphaMode(), except it modifies an attribute for an existing object, while setAlphaMode() sets the attribute for objects yet to be created.

setAlphaMode() is applied after setAddColor()

setAlphaMode(0)

setAlphaMode(1)

setAlphaMode(0) and mis-matched ALPHA layer