Show
Ignore:
Timestamp:
10/09/09 15:39:11 (5 years ago)
Author:
robert
Message:

Introduced new uniforms for tracking the modelview and project matrices in shaders using non built-ins.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgUtil/RenderLeaf.cpp

    r7328 r10621  
    5555 
    5656        } 
    57          
     57 
     58        // if we are using osg::Program which requires OSG's generated uniforms to track 
     59        // modelview and projection matrices then apply them now. 
     60        state.applyModelViewAndProjectionUniformsIfRequired(); 
    5861 
    5962        // draw the drawable 
     
    7174        state.apply(_parent->getStateSet()); 
    7275 
     76        // if we are using osg::Program which requires OSG's generated uniforms to track 
     77        // modelview and projection matrices then apply them now. 
     78        state.applyModelViewAndProjectionUniformsIfRequired(); 
     79 
    7380        // draw the drawable 
    7481        _drawable->draw(renderInfo);