Enabled text overlay, code cleanup, refactoring, gl_PerVertex output for shaders

This commit is contained in:
saschawillems 2016-06-01 21:55:10 +02:00
parent 886abea862
commit ee8478cdec
10 changed files with 136 additions and 150 deletions

View file

@ -16,6 +16,11 @@ layout (binding = 0) uniform UBO
layout (location = 0) out vec2 outUV;
layout (location = 1) out vec4 outPos;
out gl_PerVertex
{
vec4 gl_Position;
};
void main()
{
outUV = inUV;

View file

@ -19,6 +19,11 @@ layout (location = 1) out vec3 outColor;
layout (location = 2) out vec3 outEyePos;
layout (location = 3) out vec3 outLightVec;
out gl_PerVertex
{
vec4 gl_Position;
};
void main()
{
outNormal = inNormal;

Binary file not shown.

View file

@ -14,6 +14,11 @@ layout (binding = 0) uniform UBO
layout (location = 0) out vec2 outUV;
out gl_PerVertex
{
vec4 gl_Position;
};
void main()
{
outUV = inUV;

Binary file not shown.