Changed terrain texture UVs

This commit is contained in:
Lorenzo Torres 2025-08-14 23:35:56 +02:00
parent d6baada9ce
commit 74bf3f7ac3
5 changed files with 70 additions and 25 deletions

View file

@ -83,9 +83,9 @@ void main() {
grassWeight /= total;
rockWeight /= total;
vec4 sandColor = texture(sand, TexCoords);
vec4 grassColor = texture(grass, TexCoords);
vec4 rockColor = texture(rock, TexCoords);
vec4 sandColor = texture(sand, vec2(FragPos.x, FragPos.z));
vec4 grassColor = texture(grass, vec2(FragPos.x, FragPos.z));
vec4 rockColor = texture(rock, vec2(FragPos.x, FragPos.z));
vec4 finalColor = sandColor * sandWeight +
grassColor * grassWeight +