#include <color3.h>
Public Member Functions | |
| Color3 () | |
| Color3 (sheep::Real r) | |
| Color3 (const Color3 &c) | |
| Color3 (sheep::Real r, sheep::Real g, sheep::Real b) | |
| void | ConvertToRGBE (sheep::uint8 *r, sheep::uint8 *g, sheep::uint8 *b, sheep::uint8 *e) const |
| void | SetToBlack () |
| bool | IsBlack () const |
| sheep::Real | Average () const |
| Computes (R+G+B)/3. | |
| sheep::Real | Luminance () const |
| Computes luminance from linear RGB values according to CIE Rec. 709 standard. | |
Static Public Member Functions | |
| Color3 | ConvertFromRGBE (sheep::uint8 r, sheep::uint8 g, sheep::uint8 b, sheep::uint8 e) |
Public Attributes | |
| sheep::Real | m_r |
| sheep::Real | m_g |
| sheep::Real | m_b |
Definition at line 36 of file color3.h.
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
|
|
|
Computes (R+G+B)/3.
Definition at line 179 of file color3.h. Referenced by toxic::PhotonMap::BuildPhotonDirectionHistogram(), toxic::Renderer::trace(), and toxic::GlobalPhotonTracer::trace_photon(). |
|
||||||||||||||||||||
|
Conversion from Greg Ward's shared-exponent RGB-format. http://www.graphics.cornell.edu/online/formats/rgbe/ |
|
||||||||||||||||||||
|
Conversion to Greg Ward's shared-exponent RGB-format. http://www.graphics.cornell.edu/online/formats/rgbe/ |
|
|
Definition at line 173 of file color3.h. Referenced by toxic::Renderer::compute_direct_illumination(), toxic::Renderer::compute_specular_reflections(), and toxic::SceneBuilder::object_builder(). |
|
|
Computes luminance from linear RGB values according to CIE Rec. 709 standard.
Definition at line 185 of file color3.h. Referenced by contrast(). |
|
|
|
|
|
Definition at line 38 of file color3.h. Referenced by toxic::Framebuffer::Clear(), operator *(), operator *=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), toxic::SceneBuilder::parse_color3(), and toxic::MeshBuilder::SetDiffuseColor(). |
|
|
Definition at line 38 of file color3.h. Referenced by toxic::Framebuffer::Clear(), operator *(), operator *=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), toxic::SceneBuilder::parse_color3(), and toxic::MeshBuilder::SetDiffuseColor(). |
|
|
Definition at line 38 of file color3.h. Referenced by toxic::Framebuffer::Clear(), operator *(), operator *=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), toxic::SceneBuilder::parse_color3(), and toxic::MeshBuilder::SetDiffuseColor(). |
1.3.6