shader Namespace Reference

shader module. More...


Classes

class  Conf
 Module configuration. More...
class  Light
 Interface to light sources implemented by shaders and hw. More...
class  BaseLight
 Abstract light class. More...
class  ShaderLight
 Light implemented by shaders. More...
struct  ShaderProgram
 Stores individual vertex/fragment shaders. More...
class  ShaderFactory
 ShaderFactory attaches a shader to a node. More...
class  Uniform
 Template class that abstracts a shader uniform (for uniforms that change). More...
class  ShaderVisitor
 ShaderVisitor (private implementation of ShaderModel). More...
class  ShaderModel
 Modify a 3D model for rendering by shaders. More...
class  ShaderName
 ID of a shader. More...
class  ShaderLight_PreDrawViewListener
 Transforms the light's position from world to eye space. More...

Namespaces

namespace  defs
namespace  global

Functions

ostream & operator<< (ostream &strm, const Conf &conf)
INLINE ConfGetConf (void)
void Init (const base::InitArgs &initArgs)
void Start (void)
void DisableShader (osg::StateSet &stateSet)
void ResetShaderUniformsForModel (Node &node)
void ResetShaderUniformsForRootNode (Node &node)
void SetShaderFog (Node &node, const fp fogDensity, const RGBA fogColor)
template<typename T>
CLASS_METHOD void SetShaderUniform (const string &uniformName, const T &val, RefPtr< osg::StateSet > stateset)
template<typename T>
CLASS_METHOD void SetShaderUniform (const string &uniformName, const T &val, Node &node)

Variables

const fp BASE_AMBIENT_FACTOR = 0.35f


Detailed Description

shader module.

Function Documentation

void shader::DisableShader ( osg::StateSet &  stateSet  ) 

Disable shader on a node.

INLINE Conf& shader::GetConf ( void   ) 

void shader::Init ( const base::InitArgs initArgs  ) 

Initialize module.

ostream & shader::operator<< ( ostream &  strm,
const Conf conf 
)

Print Conf configuration.

void shader::ResetShaderUniformsForModel ( Node &  node  ) 

Reset MOST (not all) shader uniforms.

void shader::ResetShaderUniformsForRootNode ( Node &  node  ) 

Reset ALL shader uniforms. Some uniforms are attached only to the root node.

void shader::SetShaderFog ( Node &  node,
const fp  fogDensity,
const RGBA  fogColor 
)

Set fog parameters.

template<typename T>
CLASS_METHOD void shader::SetShaderUniform ( const string &  uniformName,
const T &  val,
Node &  node 
) [inline]

Convenience function to assign a uniform to a node. This is slow -- it's only meant for one-time assignment of a uniform. If a uniform will be changed frequently, instead use "new Uniform".

template<typename T>
CLASS_METHOD void shader::SetShaderUniform ( const string &  uniformName,
const T &  val,
RefPtr< osg::StateSet >  stateset 
) [inline]

Convenience function to assign a uniform to a node. This is slow -- it's only meant for one-time assignment of a uniform. If a uniform will be changed frequently, instead use "new Uniform".

void shader::Start ( void   ) 

Start module.


Variable Documentation

Palomino Flight Simulator documents generated by doxygen 1.5.6 on Tue Sep 28 11:37:50 2010