Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#version 420 core
layout(location=0) in vec4 terrainCoords;
layout(location=1) in vec3 normal;
layout(location=2) in vec2 texCoords;
uniform mat4 projMat;
uniform mat4 viewMat;
uniform mat4 modelMat;
out vec4 coloursExport;
out vec2 texCoordsExport;
out vec3 normalExport;
out vec3 FragPos;
void main(void)
{
FragPos = vec3(viewMat * modelMat * terrainCoords);
gl_Position = projMat * viewMat * modelMat * terrainCoords;
texCoordsExport = texCoords;
normalExport = normal;
}