Commit c44f2820 authored by Martin Heistermann's avatar Martin Heistermann

Fix facesColoredPerFaceFlatShaded rendering.

parent 497a4a14
......@@ -860,6 +860,12 @@ void VolumeMeshNodeT<VolumeMeshT>::getFaceRenderObjects(IRenderer* _renderer, GL
ro.shaderDesc.numLights = -1;
ro.shaderDesc.shadeMode = SG_SHADE_GOURAUD;
}
else if (_drawMode & drawModes_.facesColoredPerFaceFlatShaded)
{
ro.shaderDesc.vertexColors = true;
ro.shaderDesc.numLights = -1;
ro.shaderDesc.shadeMode = SG_SHADE_FLAT;
}
else
{
ro.shaderDesc.numLights = 0;
......
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