map3drendering/Map3DRendering/Shaders/shader.vert
Troispoils 664eb5872a Success to blend 4 texture
Need improuve for angle.
2024-02-27 20:57:37 +01:00

29 lines
No EOL
684 B
GLSL

#version 330 core
layout (location = 0) in vec3 aPos;
layout (location = 1) in vec4 aColor;
layout (location = 2) in vec4 aColorFar;
layout (location = 3) in vec2 aTexCoord;
layout (location = 4) in vec4 aTexType;
layout (location = 5) in float aRealTexType;
uniform mat4 model;
uniform mat4 view;
uniform mat4 projection;
out vec3 FragPos;
out vec4 Color;
out vec4 FarColor;
out vec2 TexCoord;
out vec4 TexType;
out float RealType;
void main()
{
gl_Position = vec4(aPos, 1.0) * model * view * projection;
FragPos = vec3(vec4(aPos, 1.0) * model);
Color = aColor;
FarColor = aColorFar;
TexCoord = aTexCoord;
TexType = aTexType;
RealType = aRealTexType;
}