Changeset 13787

Show
Ignore:
Timestamp:
10/21/14 17:10:27 (5 days ago)
Author:
robert
Message:

Added shaders to support experimental shader based displacement mapping technique osgTerrain::ShaderTerrain?.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/branches/OpenSceneGraph-3.2/src/osgPlugins/dds/ReaderWriterDDS.cpp

    r13518 r13787  
    10601060    //unsigned int components     = osg::Image::computeNumComponents(pixelFormat); 
    10611061    unsigned int pixelSize      = osg::Image::computePixelSizeInBits(pixelFormat, dataType); 
    1062     unsigned int imageSize      = img->getImageSizeInBytes(); 
     1062    unsigned int imageSize      = img->getTotalSizeInBytes(); 
    10631063 
    10641064    // Check that theorical image size (computation taking into account DXTC blocks) is not bigger than actual image size.