mightymandel v16

GPU-based Mandelbrot set explorer

fp64_init_vert.glsl
Go to the documentation of this file.
1 // mightymandel -- GPU-based Mandelbrot Set explorer
2 // Copyright (C) 2012,2013,2014 Claude Heiland-Allen
3 // License GPL3+ http://www.gnu.org/licenses/gpl.html
4 
5 uniform double radius;
6 uniform dvec2 center;
7 in vec4 c;
8 out dvec4 cne;
9 #ifdef DE
10 out dvec4 zdz;
11 #else
12 out dvec2 zdz;
13 #endif
14 void main() {
15  cne = dvec4(radius * dvec2(c.xy) + center, 0.0, 0.0);
16 #ifdef DE
17  zdz = dvec4(0.0, 0.0, 0.0, 0.0);
18 #else
19  zdz = dvec2(0.0, 0.0);
20 #endif
21 }