summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/explicit_rotation.vert4
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.;