Rgb (Material stage keyword)

Description

The rgb keyword multiples the red, green, and blue channels of the associated map by the given value.

Usage

rgb <colorval>

Parameters

  • colorval - the value by which the red, green, and blue channels of the image map should be multiplied

Example

The following stage reduces the intensity of the red, green, and blue channels by half.

{
   map path/to/image.tga
   rgb 0.5
}

Notes

This keyword is a shorthand way to acomplish the following…

{
   map path/to/image.tga
   red 0.5
   green 0.5
   blue 0.5
}