OpenMW
|
Classes | |
class | ShaderManager |
Reads shader template files and turns them into a concrete shader, based on a list of define's. More... | |
class | ShaderVisitor |
Adjusts the given subgraph to render using shaders. More... | |
Functions | |
bool | parseIncludes (boost::filesystem::path shaderPath, std::string &source) |
bool | parseDefines (std::string &source, const ShaderManager::DefineMap &defines) |
osg::StateSet * | getWritableStateSet (osg::Node &node) |
bool | isTextureNameRecognized (const std::string &name) |
Variables | |
const char * | defaultTextures [] = { "diffuseMap", "normalMap", "emissiveMap", "darkMap", "detailMap", "envMap", "specularMap", "decalMap" } |
osg::StateSet* Shader::getWritableStateSet | ( | osg::Node & | node | ) |
bool Shader::isTextureNameRecognized | ( | const std::string & | name | ) |
bool Shader::parseDefines | ( | std::string & | source, |
const ShaderManager::DefineMap & | defines | ||
) |
bool Shader::parseIncludes | ( | boost::filesystem::path | shaderPath, |
std::string & | source | ||
) |
const char* Shader::defaultTextures[] = { "diffuseMap", "normalMap", "emissiveMap", "darkMap", "detailMap", "envMap", "specularMap", "decalMap" } |