better system for texture terrain.
This commit is contained in:
parent
3aa6b5bc83
commit
443b3a319d
9 changed files with 120 additions and 69 deletions
|
|
@ -12,7 +12,6 @@ in vec3 Normal;
|
|||
in vec3 FragPos;
|
||||
in vec2 TexCoord;
|
||||
in vec4 TexType;
|
||||
in float RealType;
|
||||
|
||||
void main()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue