Fix signedness mess-ups in shaders

This commit is contained in:
wheremyfoodat 2024-07-19 01:29:48 +03:00
parent e36b6c77a7
commit 90abf8a376
2 changed files with 4 additions and 4 deletions

View file

@ -161,7 +161,7 @@ bool error_unimpl = false;
vec4 unimpl_color = vec4(1.0, 0.0, 1.0, 1.0);
float lutLookup(uint lut, int index) {
return texelFetch(u_tex_lighting_lut, ivec2(index, lut), 0).r;
return texelFetch(u_tex_lighting_lut, ivec2(index, int(lut)), 0).r;
}
vec3 regToColor(uint reg) {