mightymandel v16

GPU-based Mandelbrot set explorer

fp64_unescaped_geom.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 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 out dvec4 cne;
14 #ifdef DE
15 out dvec4 zdz;
16 #else
17 out dvec2 zdz;
18 #endif
19 void main() {
20  bool escaped = ! (cne1[0].w <= 0.0);
21  if (! escaped) {
22  cne = cne1[0];
23  zdz = zdz1[0];
24  EmitVertex();
25  EndPrimitive();
26  }
27 }