Various shader fixes and optimizations.

This commit is contained in:
James Canete committed 2012-11-14 10:56:31 +00:00
1 parent b269acac94
commit d635193e19
5 files changed
+558 -452

No files matched your search

+2 -2
View File
@@ -2234,9 +2234,9 @@ static void CollapseStagesToLightall(shaderStage_t *diffuse,
}
}
if (environment)
if (environment || diffuse->bundle[0].numTexMods)
{
defs |= LIGHTDEF_TCGEN_ENVIRONMENT;
defs |= LIGHTDEF_USE_TCGEN_AND_TCMOD;
}
//ri.Printf(PRINT_ALL, ".\n");