Commit be6adfd3 authored by Jan Möbius's avatar Jan Möbius
Browse files

refs #901



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15662 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 0e1756e3
......@@ -590,6 +590,7 @@ void ACG::SceneGraph::MeshNodeT<Mesh>::getRenderObjects( IRenderer* _renderer, G
ro.depthWrite = true;
ro.depthFunc = GL_LESS;
// ------------------------
// 1. setup drawMesh based on property source
......@@ -640,8 +641,6 @@ void ACG::SceneGraph::MeshNodeT<Mesh>::getRenderObjects( IRenderer* _renderer, G
ro.shaderDesc.numLights = props->lighting() ? 0 : -1;
// TODO: better handling of attribute sources in shader gen
if (props->flatShaded())
ro.shaderDesc.shadeMode = SG_SHADE_FLAT;
switch (props->lightStage())
{
......@@ -650,6 +649,8 @@ void ACG::SceneGraph::MeshNodeT<Mesh>::getRenderObjects( IRenderer* _renderer, G
case DrawModes::LIGHTSTAGE_UNLIT: ro.shaderDesc.shadeMode = SG_SHADE_UNLIT; break;;
}
if (props->flatShaded())
ro.shaderDesc.shadeMode = SG_SHADE_FLAT;
// handle 'special' primitives (wireframe, hiddenline, primitives in sysmem buffers)..
......
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