better system for texture terrain.

This commit is contained in:
Troispoils 2024-03-01 21:56:18 +01:00
parent 3aa6b5bc83
commit 443b3a319d
9 changed files with 120 additions and 69 deletions

View file

@ -12,7 +12,6 @@ in vec3 Normal;
in vec3 FragPos;
in vec2 TexCoord;
in vec4 TexType;
in float RealType;
void main()
{

View file

@ -5,7 +5,6 @@ layout (location = 2) in vec4 aColor;
layout (location = 3) in vec4 aColorFar;
layout (location = 4) in vec2 aTexCoord;
layout (location = 5) in vec4 aTexType;
layout (location = 6) in float aRealTexType;
uniform mat4 model;
uniform mat4 view;
@ -17,7 +16,6 @@ out vec4 Color;
out vec4 FarColor;
out vec2 TexCoord;
out vec4 TexType;
out float RealType;
void main()
{
@ -28,5 +26,4 @@ void main()
FarColor = aColorFar;
TexCoord = aTexCoord;
TexType = aTexType;
RealType = aRealTexType;
}