From c5d0b945bf4dccc0e611d961f5f60dc3ded293e6 Mon Sep 17 00:00:00 2001 From: J08nY Date: Sat, 16 Apr 2016 15:31:08 +0200 Subject: Pointerlock working(somewhat) ~lunch~ --- shader/vertex_shader.vert | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 shader/vertex_shader.vert (limited to 'shader/vertex_shader.vert') diff --git a/shader/vertex_shader.vert b/shader/vertex_shader.vert new file mode 100644 index 0000000..9a07371 --- /dev/null +++ b/shader/vertex_shader.vert @@ -0,0 +1,10 @@ + +varying vec3 vWorldPosition; + +void main() { + vec4 worldPosition = modelMatrix * vec4( position, 1.0 ); + vWorldPosition = worldPosition.xyz; + + gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 ); + +} -- cgit v1.2.3-70-g09d2