diff options
Diffstat (limited to 'pbr/1.1.lighting/default.vert')
-rw-r--r-- | pbr/1.1.lighting/default.vert | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/pbr/1.1.lighting/default.vert b/pbr/1.1.lighting/default.vert index d83afbf..1b953d7 100644 --- a/pbr/1.1.lighting/default.vert +++ b/pbr/1.1.lighting/default.vert @@ -1,2 +1,17 @@ #version 330 core -layout(location = 0) + +layout(location = 0) in vec3 position; +layout(location = 2) in vec2 tex_coords; + +out vert_t { + vec2 tex_coords; +} vert; + +uniform mat4 model; + +void main(void) +{ + gl_Position = model * vec4(position, 1.0); + + vert.tex_coords = tex_coords; +} |