Advertisement

在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)

还没有任何评论哟~