mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
CloudViewer: reduced ambient lighting for textureMesh with VTK>=7
This commit is contained in:
@@ -1430,8 +1430,12 @@ bool CloudViewer::addTextureMesh (
|
||||
// Save the viewpoint transformation matrix to the global actor map
|
||||
(*_visualizer->getCloudActorMap())[id].viewpoint_transformation_ = transformation;
|
||||
#endif
|
||||
|
||||
actor->GetProperty()->SetAmbient(0.5);
|
||||
|
||||
#if VTK_MAJOR_VERSION >= 7
|
||||
actor->GetProperty()->SetAmbient(0.1);
|
||||
#else
|
||||
actor->GetProperty()->SetAmbient(0.5);
|
||||
#endif
|
||||
actor->GetProperty()->SetLighting(_aSetLighting->isChecked());
|
||||
actor->GetProperty()->SetInterpolation(_aSetFlatShading->isChecked()?VTK_FLAT:VTK_PHONG);
|
||||
actor->GetProperty()->SetEdgeVisibility(_aSetEdgeVisibility->isChecked());
|
||||
|
||||
Reference in New Issue
Block a user