Changeset 4805 for OpenSceneGraph/trunk/examples/osgvolume/osgvolume.cpp
- Timestamp:
- 11/17/05 21:22:55 (8 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgvolume/osgvolume.cpp
r4727 r4805 493 493 int num_s = osg::minimum(image->s(), image_3d->s()); 494 494 495 unsigned int s_offset_dest = (image->s()<s_nearestPowerOfTwo) ? s_nearestPowerOfTwo/2 - image->s()/2 : 0;496 unsigned int t_offset_dest = (image->t()<t_nearestPowerOfTwo) ? t_nearestPowerOfTwo/2 - image->t()/2 : 0;495 unsigned int s_offset_dest = (image->s()<s_nearestPowerOfTwo) ? s_nearestPowerOfTwo/2 - image->s()/2 : 0; 496 unsigned int t_offset_dest = (image->t()<t_nearestPowerOfTwo) ? t_nearestPowerOfTwo/2 - image->t()/2 : 0; 497 497 498 498 for(int r=0;r<num_r;++r, ++curr_dest_r) … … 1012 1012 if (normalmap_3d.valid()) 1013 1013 { 1014 if (two_pass)1015 {1014 if (two_pass) 1015 { 1016 1016 1017 1017 // set up normal texture … … 1077 1077 stateset->setTextureAttributeAndModes(1,new osg::TexEnv(),osg::StateAttribute::ON); 1078 1078 1079 }1079 } 1080 1080 else 1081 1081 {
