[ Contact ] [ Links ] [ Previous : 19 / 25 : Combining texture and shape colors ] [ Up ] [ Next : 21 / 25 : Texture modes Typical Use Document ]

Using texture modes

The Texture mode in TextureAttributes controls how texture pixels affect shape color

REPLACE

Texture color completely replaces the shape's material color

DECAL

Texture color is blended as a decal on top of the shape's material color

MODULATE

Texture color modulates (filters) the shape's material color

BLEND

Texture color blends the shape's material color with an arbitrary blend color

 

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:


See the "Links" link above to find out the sources of the proposed informations
Pascal Vuylsteker / eScience / Computer Science / ANU
Last modified: 20/4/2004
TOC - Print
Send your comments at :
<Hugh.Fisher@anu.edu.au>