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

This commit is contained in:
saschawillems 2016-05-31 20:07:43 +02:00
parent 89fa6594c1
commit 886abea862
10 changed files with 120 additions and 187 deletions

View file

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

View file

@ -21,6 +21,11 @@ layout(push_constant) uniform PushConsts
mat4 view;
} pushConsts;
out gl_PerVertex
{
vec4 gl_Position;
};
void main()
{
gl_Position = ubo.projection * pushConsts.view * ubo.model * vec4(inPos, 1.0);

View file

@ -22,6 +22,11 @@ layout (location = 3) out vec3 outLightVec;
layout (location = 4) out vec3 outWorldPos;
layout (location = 5) out vec3 outLightPos;
out gl_PerVertex
{
vec4 gl_Position;
};
void main()
{
outColor = inColor;