Difference between revisions of "RGB"

From Valve Developer Community
Jump to: navigation, search
 
(expanded)
Line 1: Line 1:
 
[[category:glossary]]
 
[[category:glossary]]
RGB stands for Red, Green, Blue. Colors are composed of a mix of Red, Green, and Blue (think of an artist's palette).
+
[[RGB]] stands for Red, Green, Blue. In a [[TGA]] or [[VTF]], each pixel of the image is defined by three [[integer]]s from 0 and 255 that define how much red, green, and blue light are added together to produce the color in that pixel.  The three separate values for each color are called channels.  Shaders in Source can manipulate each channel individually to produce color effects.
 +
 
 +
Image files can also have a fourth channel, called [[alpha]], which can define other information for each pixel, usually opacity.

Revision as of 19:12, 15 July 2005

RGB stands for Red, Green, Blue. In a TGA or VTF, each pixel of the image is defined by three integers from 0 and 255 that define how much red, green, and blue light are added together to produce the color in that pixel. The three separate values for each color are called channels. Shaders in Source can manipulate each channel individually to produce color effects.

Image files can also have a fourth channel, called alpha, which can define other information for each pixel, usually opacity.