209

Controlling the Appearance of Texture Mapping
Using Texture Modes

  • The Texture mode in the TextureAttributes class 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

  • Note: the shape's material color undergoes 3D lighting calculations