Commit 8271a682 authored by David Bommes's avatar David Bommes

enabled twosidedlighting for face coloring with flat shading

parent 3c2f82bc
......@@ -656,6 +656,9 @@ void VolumeMeshNodeT<VolumeMeshT>::draw(GLState& _state, const DrawModes::DrawMo
// edge based draw mode (except edges on cells) and irregular edges
edgeDrawMode |= _drawMode & (drawModes_.irregularInnerEdges | drawModes_.irregularOuterEdges);
// enable twosided lighting for per_face_flat_shaded
if(faceDrawMode & (drawModes_.facesColoredPerFaceFlatShaded))
_state.set_twosided_lighting(true);
if (cellDrawMode)
drawCells(_state, cellDrawMode);
......
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