Commit fa3c6a93 authored by Ken Martin's avatar Ken Martin
Browse files

enable/disable blending

parent 272244e2
......@@ -69,6 +69,16 @@ void vtkOglrProperty::Render(vtkProperty *prop, vtkOglrRenderer *ren)
Info[3] = prop->GetOpacity();
// deal with blending if necc
if (Info[3] < 1.0)
{
glEnable( GL_BLEND);
}
else
{
glDisable( GL_BLEND);
}
Ambient = prop->GetAmbient();
Diffuse = prop->GetDiffuse();
Specular = prop->GetSpecular();
......@@ -115,3 +125,4 @@ void vtkOglrProperty::Render(vtkProperty *prop, vtkOglrRenderer *ren)
glShadeModel(method);
}
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