mirror of
https://github.com/DrBeef/Raze.git
synced 2025-02-22 11:41:08 +00:00
polymer: only let emitshadow affect shadows, not lightmaps.
Lightmaps are already opt-in anyway. git-svn-id: https://svn.eduke32.com/eduke32@3093 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
e726484ccc
commit
67c7d67166
1 changed files with 11 additions and 14 deletions
|
@ -1479,7 +1479,7 @@ int16_t polymer_addlight(_prlight* light)
|
||||||
|
|
||||||
Bmemcpy(&prlights[lighti], light, sizeof(_prlight));
|
Bmemcpy(&prlights[lighti], light, sizeof(_prlight));
|
||||||
|
|
||||||
if (light->radius && light->publicflags.emitshadow) {
|
if (light->radius) {
|
||||||
polymer_processspotlight(&prlights[lighti]);
|
polymer_processspotlight(&prlights[lighti]);
|
||||||
|
|
||||||
// get the texture handle for the lightmap
|
// get the texture handle for the lightmap
|
||||||
|
@ -4600,8 +4600,6 @@ static int32_t polymer_bindmaterial(_prmaterial material, int16_t* lights,
|
||||||
// PR_BIT_SPOT_LIGHT
|
// PR_BIT_SPOT_LIGHT
|
||||||
if (prlights[lights[curlight]].radius) {
|
if (prlights[lights[curlight]].radius) {
|
||||||
programbits |= prprogrambits[PR_BIT_SPOT_LIGHT].bit;
|
programbits |= prprogrambits[PR_BIT_SPOT_LIGHT].bit;
|
||||||
|
|
||||||
if (prlights[lights[curlight]].publicflags.emitshadow) {
|
|
||||||
// PR_BIT_SHADOW_MAP
|
// PR_BIT_SHADOW_MAP
|
||||||
if (prlights[lights[curlight]].rtindex != -1) {
|
if (prlights[lights[curlight]].rtindex != -1) {
|
||||||
programbits |= prprogrambits[PR_BIT_SHADOW_MAP].bit;
|
programbits |= prprogrambits[PR_BIT_SHADOW_MAP].bit;
|
||||||
|
@ -4614,7 +4612,6 @@ static int32_t polymer_bindmaterial(_prmaterial material, int16_t* lights,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// material override
|
// material override
|
||||||
programbits &= overridematerial;
|
programbits &= overridematerial;
|
||||||
|
@ -5155,7 +5152,7 @@ static void polymer_updatelights(void)
|
||||||
// highly suboptimal
|
// highly suboptimal
|
||||||
polymer_removelight(i);
|
polymer_removelight(i);
|
||||||
|
|
||||||
if (light->radius && light->publicflags.emitshadow)
|
if (light->radius)
|
||||||
polymer_processspotlight(light);
|
polymer_processspotlight(light);
|
||||||
|
|
||||||
polymer_culllight(i);
|
polymer_culllight(i);
|
||||||
|
|
Loading…
Reference in a new issue