Use Vulkan result check macro, code cleanup, added text overlay

This commit is contained in:
saschawillems 2016-05-24 20:49:15 +02:00
parent faa59a2f78
commit dfda2d2622
10 changed files with 113 additions and 157 deletions

View file

@ -15,14 +15,13 @@ layout (binding = 0) uniform UBO
layout (location = 0) out vec3 outColor;
out gl_PerVertex
{
vec4 gl_Position;
};
void main()
{
/*
if (inColor.r >= 0.9)
{
outColor = ubo.glowColor.rgb;
}
else*/
{
outColor = inColor;
}

View file

@ -18,6 +18,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;

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;