Use Vulkan result check macro, code cleanup, added text overlay
This commit is contained in:
parent
faa59a2f78
commit
dfda2d2622
10 changed files with 113 additions and 157 deletions
Binary file not shown.
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -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;
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -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.
Loading…
Add table
Add a link
Reference in a new issue