Contents User Forum Source Index APIs by Task APIs by Level Data


G3D::SuperShader::Component Class Reference

Material property coefficients are specified as a constant color times a texture map. More...

#include <SuperShader.h>

List of all members.

Public Member Functions

 Component (Texture::Ref t)
 Component (double c)
 Component (const Color3 &c)
 Component ()
bool isBlack () const
bool isWhite () const
bool operator== (const Component &other) const
bool similarTo (const Component &other) const

Public Attributes

Color3 constant
Texture::Ref map


Detailed Description

Material property coefficients are specified as a constant color times a texture map.

If the color is white the texture map entirely controls the result. If the color is black the term is disabled. On graphics cards with few texture units the map will be ignored.


Constructor & Destructor Documentation

G3D::SuperShader::Component::Component (  )  [inline]

G3D::SuperShader::Component::Component ( const Color3 c  )  [inline]

G3D::SuperShader::Component::Component ( double  c  )  [inline]

G3D::SuperShader::Component::Component ( Texture::Ref  t  )  [inline]


Member Function Documentation

bool G3D::SuperShader::Component::isBlack (  )  const [inline]

True if this material is definitely (0,0,0) everywhere.

bool G3D::SuperShader::Component::isWhite (  )  const [inline]

True if this material is definitely (1,1,1) everywhere.

bool G3D::SuperShader::Component::operator== ( const Component other  )  const [inline]

bool G3D::SuperShader::Component::similarTo ( const Component other  )  const

Returns true if both components will produce similar non-zero terms in a lighting equation.

Black and white are only similar to themselves.


Member Data Documentation

Color that is constant over the entire surface.

Color that varies over position.

NULL means white.


The documentation for this class was generated from the following file:
Generated on Thu Aug 2 11:40:47 2007 for G3D by doxygen 1.5.2
Hosted by SourceForge.net Logo