Alpha: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(cleanup) |
||
Line 1: | Line 1: | ||
:''For the VMT parameter, see {{ent|$alpha}}. | |||
{{ | '''Alpha''' is a [[byte]] {{wiki|variable}} that is often included as the "fourth" byte in a [[RGB]] color format. '''Alpha''' is usually an [[opacity]] rating from 0 - 255, where 0 is completely invisible and 255 is completely visible. Alpha is sometimes also used for other things, such as a self-illumination mask. | ||
'''Alpha''' is a [[byte]] {{wiki|variable}} that is often included as the "fourth" byte in a [[RGB]] color format. '''Alpha''' is an [[opacity]] rating from 0 - 255, where 0 is completely invisible and 255 is completely visible. | |||
To store an individual alpha value in each pixel, an [[alpha channel]] is used as the fourth channel of the [[TGA]] file. | To store an individual alpha value in each pixel, an [[alpha channel]] is used as the fourth channel of the [[TGA]] file. This allows variable opacity, for example, in a single texture, such as the lettered Petrol signs in Half-Life 2. | ||
[http://www.getpaint.net Paint.net] is a good program for adding alpha to a texture. Be aware that a pixel with alpha set to 0 still has R, G, and B values, which may affect the texture in some cases. | |||
[[Category:Glossary]] | |||
[[Category:Material System]] |
Revision as of 08:26, 29 August 2018
- For the VMT parameter, see $alpha.
Alpha is a byte variable that is often included as the "fourth" byte in a RGB color format. Alpha is usually an opacity rating from 0 - 255, where 0 is completely invisible and 255 is completely visible. Alpha is sometimes also used for other things, such as a self-illumination mask.
To store an individual alpha value in each pixel, an alpha channel is used as the fourth channel of the TGA file. This allows variable opacity, for example, in a single texture, such as the lettered Petrol signs in Half-Life 2.
Paint.net is a good program for adding alpha to a texture. Be aware that a pixel with alpha set to 0 still has R, G, and B values, which may affect the texture in some cases.