light: do bounce after phong

This commit is contained in:
Eric Wasylishen 2017-03-18 17:58:42 -06:00
parent 21445c0d6a
commit b911c70372
1 changed files with 5 additions and 4 deletions

View File

@ -405,6 +405,11 @@ LightWorld(bspdata_t *bspdata, qboolean forcedscale)
CalcualateVertexNormals(bsp); CalcualateVertexNormals(bsp);
if (cfg_static.bounce.boolValue()) {
MakeTextureColors(bsp);
MakeBounceLights(cfg_static, bsp);
}
#if 0 #if 0
lightbatchthread_info_t info; lightbatchthread_info_t info;
info.all_batches = MakeLightingBatches(bsp); info.all_batches = MakeLightingBatches(bsp);
@ -1115,10 +1120,6 @@ light_main(int argc, const char **argv)
CheckLitNeeded(cfg); CheckLitNeeded(cfg);
SetupDirt(cfg); SetupDirt(cfg);
if (cfg.bounce.boolValue()) {
MakeTextureColors(bsp);
MakeBounceLights(cfg, bsp);
}
LightWorld(&bspdata, !!lmscaleoverride); LightWorld(&bspdata, !!lmscaleoverride);
/*invalidate any bspx lighting info early*/ /*invalidate any bspx lighting info early*/