summaryrefslogtreecommitdiff
path: root/data/explicit_rotation.vert
blob: 8eb5b6c90abf4347c051aa258d08851f8c71d5a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#version 120

attribute vec2 z;
uniform float rotation_angle;

void main()
{
  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.;
}