Introduced a cast(T) method into the ImageUtils template functor to allow code reading images to handle casting from source data to a form that a user can use more conviently
This commit is contained in:
@@ -491,7 +491,7 @@ osg::Image* osgVolume::createNormalMapTexture(osg::Image* image_3d)
|
||||
//
|
||||
// applyTransferFunction
|
||||
//
|
||||
struct ApplyTransferFunctionOperator
|
||||
struct ApplyTransferFunctionOperator : public osg::CastAndScaleToFloatOperation
|
||||
{
|
||||
ApplyTransferFunctionOperator(osg::TransferFunction1D* tf, unsigned char* data):
|
||||
_tf(tf),
|
||||
|
||||
Reference in New Issue
Block a user