Changed terrain texture UVs
This commit is contained in:
parent
d6baada9ce
commit
74bf3f7ac3
5 changed files with 70 additions and 25 deletions
|
|
@ -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 +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue