User Tools

Site Tools


gamedev:textureproperties:color_tint_mask

Summary

Texture Property Namecolor.tint.mask
DescriptionDefines the blends between color.tint, color and color.alpha property.
Excepted Data Source1 component image
Data Range0 to 1 for all image components
Default Value1
Affected ModulesGraphic
Linked Propertiescolor, color.alpha, color.tint

Description

The color.tint.mask texture property is linked to the color, color.alpha and color.tint texture properties. It defines the amount of tint applied to the image from the color and color_alpha texture properties. This allows to alter the color of textures without requiring new image files for each color variation. Furthermore this allows for dynamic color changes using a renderable for this texture property.

The value is typically a 1 color component image with values located inside the range from 0 to 1.

The default value for this texture property is 1.

Examples

4 crates with the same skin assigned. Each one has a different tint color

4 crates with the same skin assigned. Each one has a different tint color using a dynamic skin. The skin uses a renderable named “tint” for the color.tint texture property. This way the material can be reused in various places just with a different color each time.

A city scene with individually colored facades using only 3 different tintable materials

A city scene with individually colored facades using only 3 different tintable materials. No need for extra materials. Using some random color variations makes boring game buildings more interesting.

You could leave a comment if you were logged in.
gamedev/textureproperties/color_tint_mask.txt · Last modified: 2016/06/22 18:04 by dragonlord