Changeset 278


Ignore:
Timestamp:
10/07/11 19:37:19 (7 years ago)
Author:
art
Message:

From Alexander Irion: Please find attached fix for osgPPU::Unit that prevents it's geode from be taken into account for near far computation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/osgPPU/Unit.cpp

    r259 r278  
    157157    osg::Geometry* geom = new osg::Geometry; 
    158158 
     159    /// To exclude drawable from near-far computation. 
     160    geom->setComputeBoundingBoxCallback(new osg::Drawable::ComputeBoundingBoxCallback()); 
     161 
    159162    // Vertex coordinates 
    160163    osg::Vec3Array* coords = new osg::Vec3Array(4); 
     
    721724            ri.getState()->applyModelViewMatrix(_parent->sModelviewMatrix.get()); 
    722725 
     726            ri.getState()->applyModelViewAndProjectionUniformsIfRequired(); // (AI) 
     727 
    723728            if (_parent->getBeginDrawCallback()) 
    724729                (*_parent->getBeginDrawCallback())(ri, _parent); 
Note: See TracChangeset for help on using the changeset viewer.