From d3f459377144069bb7550922e1d9470db1325740 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Wed, 10 Oct 2012 18:14:53 -0700 Subject: Do explicit rotation --- data/explicit_rotation.vert | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/explicit_rotation.vert b/data/explicit_rotation.vert index f410305..8eb5b6c 100644 --- a/data/explicit_rotation.vert +++ b/data/explicit_rotation.vert @@ -5,8 +5,8 @@ uniform float rotation_angle; void main() { - gl_Position.x = z.x; - gl_Position.y = z.y; + gl_Position.x = z.x * cos(rotation_angle) - z.y * sin(rotation_angle); + gl_Position.y = z.x * sin(rotation_angle) + z.y * cos(rotation_angle); gl_Position.z = 0.; gl_Position.w = 1.; gl_PointSize = 32.; -- cgit v1.2.3