Introduce osgVolume::PropertVisitor, and IsoSurface, MaximumImageProjection, Ligting and AlphaFunc Properties

This commit is contained in:
Robert Osfield
2009-01-15 15:57:04 +00:00
parent 3be239bdb2
commit ba94ea8c7d
8 changed files with 364 additions and 11 deletions

View File

@@ -2309,6 +2309,23 @@ int main( int argc, char **argv )
if (useShader)
{
switch(shadingModel)
{
case(Standard):
break;
case(Light):
layer->addProperty(new osgVolume::LightingProperty);
break;
case(Isosurface):
layer->addProperty(new osgVolume::IsoSurfaceProperty(alphaFunc));
break;
case(MaximumIntensityProjection):
layer->addProperty(new osgVolume::MaximumIntensityProjectionProperty);
break;
}
layer->addProperty(new osgVolume::AlphaFuncProperty(alphaFunc));
tile->setVolumeTechnique(new osgVolume::ShaderTechnique);
}
else