Commit 3f8d5be5 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #5971 from AlexeyAB:correct_lighting_3d_reconstruct

parents 8203b82f fcbb57a6
......@@ -67,7 +67,8 @@ namespace cv
REPRESENTATION,
IMMEDIATE_RENDERING,
SHADING,
AMBIENT
AMBIENT,
LIGHTING
};
enum RepresentationValues
......
......@@ -115,6 +115,14 @@ void cv::viz::Widget::setRenderingProperty(int property, double value)
case LINE_WIDTH: actor->GetProperty()->SetLineWidth(float(value)); break;
case IMMEDIATE_RENDERING: actor->GetMapper()->SetImmediateModeRendering(int(value)); break;
case AMBIENT: actor->GetProperty()->SetAmbient(float(value)); break;
case LIGHTING:
{
if (value == 0)
actor->GetProperty()->LightingOff();
else
actor->GetProperty()->LightingOn();
break;
}
case FONT_SIZE:
{
vtkTextActor* text_actor = vtkTextActor::SafeDownCast(actor);
......
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