mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-02 09:03:37 +00:00
Apply Acclaim point lighting for vertices, which also shaded by standard lighting.
Fixed #1683 Turok 2: Seeds of Evil (and maybe other Iguana made games) - Object Dynamic Light Issue
This commit is contained in:
parent
509ee7ed10
commit
acc884ac0b
|
@ -404,7 +404,7 @@ void gSPLightAcclaim(u32 l, s32 n)
|
|||
|
||||
gSP.changed |= CHANGED_LIGHT;
|
||||
|
||||
DebugMsg(DEBUG_NORMAL, "gSPLightAcclaim( 0x%08X, LIGHT_%i );\n", l, n);
|
||||
DebugMsg(DEBUG_NORMAL, "gSPLightAcclaim( 0x%08X, LIGHT_%i ca=%f la=%f);\n", l, n, gSP.lights.ca[n], gSP.lights.la[n]);
|
||||
}
|
||||
|
||||
void gSPLookAt( u32 _l, u32 _n )
|
||||
|
@ -822,6 +822,9 @@ void gSPProcessVertex(u32 v, SPVertex * spVtx)
|
|||
else
|
||||
gSPLightVertex<VNUM>(v, spVtx);
|
||||
|
||||
if (gSP.geometryMode & G_ACCLAIM_LIGHTING)
|
||||
gSPPointLightVertexAcclaim<VNUM>(v, spVtx);
|
||||
|
||||
if ((gSP.geometryMode & G_TEXTURE_GEN) != 0) {
|
||||
if (GBI.getMicrocodeType() != F3DFLX2) {
|
||||
for(int i = 0; i < VNUM; ++i) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user