diff options
author | Matt Turner <mattst88@gmail.com> | 2012-10-10 18:14:53 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2012-10-10 18:14:53 -0700 |
commit | d3f459377144069bb7550922e1d9470db1325740 (patch) | |
tree | 4435ca48b956091e1046bd83c0e3d9097b62920e /data | |
parent | 8c859b7abeab137c463fee18702509774d2fc5fb (diff) |
Do explicit rotation
Diffstat (limited to 'data')
-rw-r--r-- | data/explicit_rotation.vert | 4 |
1 files 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.; |