mightymandel v16

GPU-based Mandelbrot set explorer

fpxx_unescaped_geom.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 layout(points) in;
6 layout(points, max_vertices = 1) out;
7 in dvec4 cne1[1];
8 #ifdef DE
9 in dvec4 zdz1[1];
10 #else
11 in dvec2 zdz1[1];
12 #endif
13 in double err1[1];
14 out dvec4 cne;
15 #ifdef DE
16 out dvec4 zdz;
17 #else
18 out dvec2 zdz;
19 #endif
20 out double err;
21 void main() {
22  bool escaped = ! (cne1[0].w <= 0.0);
23  if (! escaped) {
24  cne = cne1[0];
25  zdz = zdz1[0];
26  err = err1[0];
27  EmitVertex();
28  EndPrimitive();
29  }
30 }