Fix more issues 1.21.5

This commit is contained in:
mcrcortex
2025-04-01 18:04:37 +10:00
parent e67ed69cc9
commit 74630504ae
9 changed files with 48 additions and 516 deletions

View File

@@ -118,7 +118,7 @@ layout(binding = LIGHTING_SAMPLER_BINDING) uniform sampler2D lightSampler;
vec4 getLighting(uint index) {
int i2 = int(index);
return texture(lightSampler, vec2((i2>>4)&0xF, i2&0xF)/16.0f);
return texelFetch(lightSampler, ivec2((i2>>4)&0xF, i2&0xF), 0);
}
#endif