diff options
Diffstat (limited to 'vert.glsl')
-rw-r--r-- | vert.glsl | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -7,6 +7,7 @@ layout (location = 2) in vec2 uv; out vec3 vnorm; out vec3 fpos; +out vec2 fuv; out vec3 lipos; uniform mat4 model; @@ -19,6 +20,7 @@ void main() gl_Position = proj * view * model * vec4(pos, 1.0); fpos = vec3(view * model * vec4(pos, 1.0)); + fuv = uv; // TODO: Try to work out how to only do this ONCE in C or see if it matters vnorm = mat3(transpose(inverse(view * model))) * norm; lipos = vec3(view * vec4(light, 1.0)); |