User Tools

Site Tools


gamedev:textureproperties:color_alpha

This is an old revision of the document!


Summary

Excepted Data Source4 component image
Data Range0 to 1 for all image components
Default Value(0, 0, 0, 1)
Graphic ModuleDefines albedo color with transparency
Physics ModuleNo effect
Audio ModuleNo effect

Graphic Module

The color_alpha texture property combines the color and the transparency texture properties in one texture property. Sometimes it is useful and saves disk space if the alpha channel of an image or color is used directly as the transparency value.

The red, green and blue components (component 0, 1 and 2) are used exactly the same way as in the color texture property. The alpha component (component 3) is used exactly as in the transparency texture property. See the appropriate texture properties to learn the details.

If the color_alpha texture property is defined together with the color and/or the transparency texture property the color_alpha texture property is applied first then the other texture properties.

The color values are typically an 8 bit image with 4 color components with the data of all color components located inside the range from 0 to 1. 0 represents 0% light reflectivity (respectively 0% opaqueness) for a color component while 1 represents a 100% light reflectivity (respectively 100% opaqueness). Values outside this range are physically not plausible.

The default value for this texture property is opaque pure black (0, 0, 0, 1).

Physics Module

This texture property does not effect Physics Modules.

Audio Module

This texture property does not effect Audio Modules.

Examples

( TODO: example image )

You could leave a comment if you were logged in.
gamedev/textureproperties/color_alpha.1354312719.txt.gz · Last modified: 2012/11/30 21:58 by dragonlord