compiles and renders textures again

This commit is contained in:
2020-02-20 23:55:36 -08:00
parent d1051a0ca3
commit 438f96eb32
16 changed files with 110 additions and 89 deletions

View File

@@ -3,7 +3,6 @@
// These come in from the vertex definition
layout(location = 0) in vec3 v_position;
layout(location = 1) in vec4 color;
layout(location = 2) in vec2 ti_position;
// These are made up in the shader themselves
layout(location = 0) out vec4 out_color;

View File

@@ -3,8 +3,7 @@
// These come in from the vertex definition
layout(location = 0) in vec3 v_position;
layout(location = 1) in vec4 color;
layout(location = 2) in vec2 ti_position;
layout(location = 1) in vec2 ti_position;
// These are made up in the shader themselves
layout(location = 0) out vec2 img_coords;

View File

@@ -4,8 +4,7 @@
// These come in from the vertex definition
// TODO : Need to add texture coordinate attribute so I can single VBO all these sumbitches
layout(location = 0) in vec3 v_position;
layout(location = 1) in vec4 color;
layout(location = 2) in vec2 ti_position;
layout(location = 1) in vec2 ti_position;
// These are made up in the shader themselves
layout(location = 0) out vec2 tex_coords;