diff options
Diffstat (limited to 'gfx/shaders/debug3d.vert')
-rw-r--r-- | gfx/shaders/debug3d.vert | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gfx/shaders/debug3d.vert b/gfx/shaders/debug3d.vert new file mode 100644 index 0000000..d51684f --- /dev/null +++ b/gfx/shaders/debug3d.vert | |||
@@ -0,0 +1,15 @@ | |||
1 | precision highp float; | ||
2 | |||
3 | uniform mat4 Modelview; | ||
4 | uniform mat4 Projection; | ||
5 | |||
6 | layout (location = 0) in vec3 vPosition; | ||
7 | layout (location = 1) in vec3 vNormal; | ||
8 | |||
9 | out vec3 Normal; | ||
10 | |||
11 | void main() | ||
12 | { | ||
13 | Normal = mat3(Modelview) * vNormal; | ||
14 | gl_Position = Projection * Modelview * vec4(vPosition, 1.0); | ||
15 | } | ||