diff options
Diffstat (limited to 'data')
-rw-r--r-- | data/angle_addition.vert | 13 | ||||
-rw-r--r-- | data/ellipse.frag | 8 | ||||
-rw-r--r-- | data/explicit_rotation.vert | 13 | ||||
-rw-r--r-- | data/matrix_rotation.vert | 10 |
4 files changed, 44 insertions, 0 deletions
diff --git a/data/angle_addition.vert b/data/angle_addition.vert new file mode 100644 index 0000000..f410305 --- /dev/null +++ b/data/angle_addition.vert @@ -0,0 +1,13 @@ +#version 120 + +attribute vec2 z; +uniform float rotation_angle; + +void main() +{ + gl_Position.x = z.x; + gl_Position.y = z.y; + gl_Position.z = 0.; + gl_Position.w = 1.; + gl_PointSize = 32.; +} diff --git a/data/ellipse.frag b/data/ellipse.frag new file mode 100644 index 0000000..bf35027 --- /dev/null +++ b/data/ellipse.frag @@ -0,0 +1,8 @@ +#version 120 + +uniform mat2 m = mat2(1.); + +void main() +{ + gl_FragColor = vec4(1.0); +} diff --git a/data/explicit_rotation.vert b/data/explicit_rotation.vert new file mode 100644 index 0000000..f410305 --- /dev/null +++ b/data/explicit_rotation.vert @@ -0,0 +1,13 @@ +#version 120 + +attribute vec2 z; +uniform float rotation_angle; + +void main() +{ + gl_Position.x = z.x; + gl_Position.y = z.y; + gl_Position.z = 0.; + gl_Position.w = 1.; + gl_PointSize = 32.; +} diff --git a/data/matrix_rotation.vert b/data/matrix_rotation.vert new file mode 100644 index 0000000..af9165d --- /dev/null +++ b/data/matrix_rotation.vert @@ -0,0 +1,10 @@ +#version 120 + +attribute vec2 z; +uniform mat2 m = mat2(1.); + +void main() +{ + gl_Position = vec4(m * z, 0.0, 1.0); + gl_PointSize = 32.; +} |