fix shader lighting... again? hopefully correctly...

This commit is contained in:
mcrcortex
2025-11-01 02:31:45 +10:00
parent 9aebf20aad
commit 8c6e6f75c6

View File

@@ -53,8 +53,7 @@ uint getFace() {
#ifdef PATCHED_SHADER
vec2 getLightmap() {
//return clamp(vec2(interData.y&0xFu, (interData.y>>4)&0xFu)/16, vec2(4.0f/255), vec2(252.0f/255));
return clamp((vec2((interData.y>>4)&0xFu, interData.y&0xFu))/16, vec2(8.0f/256), vec2(248.0f/256));
return clamp(vec2((interData.y>>4)&0xFu, interData.y&0xFu)/15, vec2(8.0f/256), vec2(248.0f/256));
}
#endif