Commit 1e57a36c authored by Michele Bosi's avatar Michele Bosi

VividRendering::FrontToBackDepthPeeling -> DepthPeeling

parent 539b3531
......@@ -470,7 +470,7 @@ public:
Actor* vol_box = mVividRendering->sceneManager()->tree()->addActor( box_outline.get(), fx_box.get(), mVividRendering->vividVolume()->volumeTransform() );
vol_box->setEnableMask( vl::VividRenderer::DefaultEnableMask );
vol_box->setObjectName( "Volume Box" );
// texture mapped quad
ref<Image> vl_img = loadImage( "/tmp/liver/VL-Stencil.png" );
ref<Geometry> quad = vl::makeGrid( volume_box.center(), volume_box.width(), volume_box.depth(), 10, 10, true );
......@@ -541,7 +541,7 @@ public:
}
break;
case '1':
mVividRendering->setRenderingMode(VividRendering::FrontToBackDepthPeeling);
mVividRendering->setRenderingMode(VividRendering::DepthPeeling);
break;
case '2':
mVividRendering->setRenderingMode(VividRendering::FastRender);
......@@ -578,7 +578,7 @@ public:
break;
}
const char* method[] = { "FastRender", "FrontToBackDepthPeeling", "StencilRender" };
const char* method[] = { "DepthPeeling", "FastRender", "StencilRender" };
printf("method: %s\n", method[mVividRendering->renderingMode()]);
printf("pass counter: %d\n", mVivid->passCounter());
printf("num passes: %d\n", mVivid->numPasses());
......
......@@ -990,7 +990,7 @@ const RenderQueue* VividRenderer::render(const RenderQueue* render_queue, Camera
case VividRendering::StencilRender:
renderStencil( camera );
break;
case VividRendering::FrontToBackDepthPeeling:
case VividRendering::DepthPeeling:
if ( mVividRendering->stencilEnabled() ) {
renderStencil( camera );
}
......
......@@ -53,7 +53,7 @@ VividRendering::VividRendering() {
// Settings
mRenderingMode = FrontToBackDepthPeeling;
mRenderingMode = DepthPeeling;
mAlpha = 1.0f;
......
......@@ -52,8 +52,8 @@ namespace vl
public:
typedef enum {
DepthPeeling,
FastRender,
FrontToBackDepthPeeling,
StencilRender
} ERenderingMode;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment