mightymandel
v16
GPU-based Mandelbrot set explorer
fpxx_init_vert.glsl
Go to the documentation of this file.
1
// mightymandel -- GPU-based Mandelbrot Set explorer
2
// Copyright (C) 2012,2013,2014,2015 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 cne1;
9
#ifdef DE
10
out dvec4 zdz1;
11
#else
12
out dvec2 zdz1;
13
#endif
14
out
double
err1;
15
out vec4 c1;
16
void
main
() {
17
dvec2 c0 = radius * dvec2(c.xy) + center;
18
cne1 = dvec4(c0, 0.0, 0.0);
19
#ifdef DE
20
zdz1 = dvec4(c0, 0.0, 0.0);
21
#else
22
zdz1 = dvec2(c0);
23
#endif
24
err1 = 0.0;
25
c1 = c;
26
}
src
fpxx_init_vert.glsl
Generated on Mon Jan 19 2015 16:18:12 for mightymandel by
1.8.1.2