diff --git a/data/base/shaders/terrain_combined_high.frag b/data/base/shaders/terrain_combined_high.frag index ec2231376ac..c02b43d496b 100644 --- a/data/base/shaders/terrain_combined_high.frag +++ b/data/base/shaders/terrain_combined_high.frag @@ -91,7 +91,7 @@ out vec4 FragColor; vec3 getGroundUv(int i) { uint groundNo = fgrounds[i]; - return vec3(uvGround * groundScale[groundNo/4u][groundNo%4u], groundNo); + return vec3(uvGround * groundScale[int(groundNo/4u)][int(groundNo%4u)], groundNo); } vec3 getGround(int i) { diff --git a/data/base/shaders/terrain_combined_medium.frag b/data/base/shaders/terrain_combined_medium.frag index aa7b34bb83d..f0ef6a55253 100644 --- a/data/base/shaders/terrain_combined_medium.frag +++ b/data/base/shaders/terrain_combined_medium.frag @@ -91,7 +91,7 @@ out vec4 FragColor; vec3 getGroundUv(int i) { uint groundNo = fgrounds[i]; - return vec3(uvGround * groundScale[groundNo/4u][groundNo%4u], groundNo); + return vec3(uvGround * groundScale[int(groundNo/4u)][int(groundNo%4u)], groundNo); } vec3 getGround(int i) {