Merge pull request #174 from gm-matthew/luminous15

Step15Luminous() applies to all luminous polys, not just textured ones
This commit is contained in:
dukeeeey 2024-08-02 19:08:52 +01:00 committed by GitHub
commit dd90d0e2e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -275,7 +275,7 @@ void Step15Luminous(inout vec4 colour)
// when fixed shading is enabled the colour is modulated by the vp ambient + fixed shade value // when fixed shading is enabled the colour is modulated by the vp ambient + fixed shade value
// when disabled it appears to be multiplied by 1.5, presumably to allow a higher range // when disabled it appears to be multiplied by 1.5, presumably to allow a higher range
if(hardwareStep==0x15) { if(hardwareStep==0x15) {
if(!lightEnabled && textureEnabled) { if(!lightEnabled) {
if(fixedShading) { if(fixedShading) {
colour.rgb *= 1.0 + fsFixedShade + lighting[1].y; colour.rgb *= 1.0 + fsFixedShade + lighting[1].y;
} }