diff options
Diffstat (limited to 'pbr/1.1.lighting/pbr.vert')
-rw-r--r-- | pbr/1.1.lighting/pbr.vert | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/pbr/1.1.lighting/pbr.vert b/pbr/1.1.lighting/pbr.vert deleted file mode 100644 index e6e3800..0000000 --- a/pbr/1.1.lighting/pbr.vert +++ /dev/null @@ -1,21 +0,0 @@ -#version 330 core - -layout(location = 0) in vec3 position; -layout(location = 1) in vec3 normal; - -out vert_t { - vec3 position; - vec3 normal; -} vert; - -uniform mat4 projection; -uniform mat4 view; -uniform mat4 model; - -void main(void) -{ - gl_Position = projection * view * model * vec4(position, 1.0); - - vert.position = vec3(model * vec4(position, 1.0)); - vert.normal = normalize(mat3(transpose(inverse(model))) * normal); -} |