Commit a5218b82 authored by Christopher Tenter's avatar Christopher Tenter
Browse files

add SG_FRAGMENT_LIGHTING keyword for shader generator

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@19724 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 5e00c48d
......@@ -1642,16 +1642,12 @@ void ShaderProgGenerator::buildFragmentShader()
if (it.contains("SG_FRAGMENT_BEGIN"))
addFragmentBeginCode(&mainCode);
else
{
if (it.contains("SG_FRAGMENT_END"))
addFragmentEndCode(&mainCode);
else
{
// no SG marker
mainCode.push_back(it);
}
}
else if (it.contains("SG_FRAGMENT_END"))
addFragmentEndCode(&mainCode);
else if (it.contains("SG_FRAGMENT_LIGHTING"))
addLightingCode(&mainCode);
else // no SG marker
mainCode.push_back(it);
}
......
Supports Markdown
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