mightymandel
v16
GPU-based Mandelbrot set explorer
fp32_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 vec4 cne1[1];
8
#ifdef DE
9
in vec4 zdz1[1];
10
#else
11
in vec2 zdz1[1];
12
#endif
13
out vec4 cne;
14
#ifdef DE
15
out vec4 zdz;
16
#else
17
out vec2 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
}
src
fp32_unescaped_geom.glsl
Generated on Mon Jan 19 2015 16:18:12 for mightymandel by
1.8.1.2