Added gl_PerVertex output blocks

This commit is contained in:
saschawillems 2016-05-18 18:55:58 +02:00
parent 2906df5308
commit d3f5b81a66
9 changed files with 15 additions and 0 deletions

View file

@ -14,6 +14,11 @@ layout (binding = 0) uniform UBO
layout (location = 0) out vec3 outColor;
out gl_PerVertex
{
vec4 gl_Position;
};
void main()
{
gl_Position = ubo.projection * ubo.modelview * vec4(inPos.xyz, 1.0);