Experiment in graphics programming, C++, OpenGL, simulation techniques.
{#} | Time | Hash | Subject | Author | # | (+) | (-) | GPG? |
---|---|---|---|---|---|---|---|---|
9 | 16 Nov 2023 11:11 | a4d3636 | Fractal Viewer | Josh Stockin | 1 | 20 | 0 | G |
1 | R""( |
2 | |
3 | #version 460 core |
4 | |
5 | |
6 | void main() |
7 | { |
8 | switch (gl_VertexID) |
9 | { |
10 | case 0: gl_Position = vec4(-1.0, 1.0, 0.0, 1.0); break; |
11 | case 1: gl_Position = vec4(-1.0, -1.0, 0.0, 1.0); break; |
12 | case 2: gl_Position = vec4(1.0, 1.0, 0.0, 1.0); break; |
13 | case 3: gl_Position = vec4(1.0, 1.0, 0.0, 1.0); break; |
14 | case 4: gl_Position = vec4(-1.0, -1.0, 0.0, 1.0); break; |
15 | case 5: gl_Position = vec4(1.0, -1.0, 0.0, 1.0); break; |
16 | } |
17 | } |
18 | |
19 | |
20 | )"" |
21 |