540

Controlling the appearance of textures
Using texture modes

Mode Result color Result transparency
REPLACE Trgb Ta
DECAL Srgb*(1-Ta)+Trgb*Ta Sa
MODULATE Srgb*Trgb Sa*Ta
BLEND Srgb*(1-Trgb)+Brgb*Trgb Sa*Ta

  • Where:
    Srgb is the color of the shape being texture mapped
    Sa is the alpha of the shape being texture mapped
    Trgb is the texture pixel color
    Ta is the texture pixel alpha
    Brgb is the shape blend color
    Ba is the shape blend alpha