vulkan_test2
diff sdr/vertex.glsl @ 17:f8bd29f124a8
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 27 Jun 2018 01:57:55 +0300 |
parents | 8eb3126cc2f1 |
children |
line diff
1.1 --- a/sdr/vertex.glsl Tue Jun 26 08:42:12 2018 +0300 1.2 +++ b/sdr/vertex.glsl Wed Jun 27 01:57:55 2018 +0300 1.3 @@ -1,8 +1,6 @@ 1.4 #version 450 1.5 #extension GL_ARB_separate_shader_objects: enable 1.6 1.7 -layout(location = 0) out vec4 outpos; 1.8 - 1.9 const vec3 vdata[] = vec3[]( 1.10 vec3(-0.5, -0.5, 0.0), 1.11 vec3(0.5, -0.5, 0.0), 1.12 @@ -10,5 +8,5 @@ 1.13 1.14 void main() 1.15 { 1.16 - outpos = vec4(vdata[gl_VertexIndex], 1.0); 1.17 + gl_Position = vec4(vdata[gl_VertexIndex], 1.0); 1.18 }