Focus On Photon Mapping (Premier Press Game Development)

[ LiB ]

Defining the Basic Colors

Here, you define the values of the basic colors. The basic colors are defined as unit values for each red, green, and blue component.

const color3 color3::Black( 0.f,0.f,0.f ); const color3 color3::Gray( 0.5f,0.5f,0.5f ); const color3 color3::White( 1.f,1.f,1.f ); const color3 color3::Red( 1.f,0.f,0.f ); const color3 color3::Green( 0.f,1.f,0.f ); const color3 color3::Blue( 0.f,0.f,1.f ); const color3 color3::Magenta( 1.f,0.f,1.f ); const color3 color3::Cyan( 0.f,1.f,1.f ); const color3 color3::Yellow( 1.f,1.f,0.f );

[ LiB ]

Категории