Difference between revisions of "RGB"

From Valve Developer Community
Jump to: navigation, search
(expanded)
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[category:glossary]]
+
[[RGB]] stands for '''r'''ed, '''g'''reen, '''b'''lue. In a [[TGA]] or [[VTF]], each pixel of the image is defined by three [[byte]]s that define how much red, green, and blue light are added together to produce the color in that pixel. Textures can also have a fourth channel, called [[alpha]], which can store other information for each pixel (usually opacity).
[[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.
+
* The three or four separate values for each color are called 'channels'. [[Shader]]s in Source can manipulate each channel individually to produce color effects.
 +
* Within [[material]]s, an RGB colour is a [[material vector]].
 +
 
 +
== See also ==
 +
 
 +
* <code>[[HSVtoRGB()]]</code>
 +
* <code>[[Color]]</code>
 +
* [[Wikipedia:RGB]]
 +
 
 +
[[Category:Glossary]]

Latest revision as of 20:03, 5 May 2010

RGB stands for red, green, blue. In a TGA or VTF, each pixel of the image is defined by three bytes that define how much red, green, and blue light are added together to produce the color in that pixel. Textures can also have a fourth channel, called alpha, which can store other information for each pixel (usually opacity).

  • The three or four separate values for each color are called 'channels'. Shaders in Source can manipulate each channel individually to produce color effects.
  • Within materials, an RGB colour is a material vector.

See also