Index

zydeco / fractal

Experiment in graphics programming, C++, OpenGL, simulation techniques.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
916 Nov 2023 11:11a4d3636Fractal ViewerJosh Stockin1200G

Blob @ zydeco / include / render / shaders / fractal.vs.glsl

text/plain469 bytesdownload raw
1R""(
2
3#version 460 core
4
5
6void 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