在osg::State中使用ModelView和Projection均匀化参数的作用
发布时间
阅读量:
阅读量
State::State():
Referenced(true)
{
#if !defined(OSG_GL_FIXED_FUNCTION_AVAILABLE)
_useModelViewAndProjectionUniforms = true;
_useVertexAttributeAliasing = true;
#else
_useModelViewAndProjectionUniforms = false;
_useVertexAttributeAliasing = false;
#endif
}
将对部分着色器变量进行相应的替换操作

osg/State.cpp
bool State::convertVertexShaderSourceToOsgBuiltIns(std::string& source) const
全部评论 (0)
还没有任何评论哟~
