mightymandel v16

GPU-based Mandelbrot set explorer

fp32_fillc_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 float aspect;
6 uniform vec2 slice_offset;
7 in vec4 p;
8 out vec2 s;
9 out vec2 t;
10 void main() {
11  gl_Position = vec4(p.xy * vec2(aspect, 1.0), 0.0, 1.0);
12  t = p.xy + slice_offset;
13  s = p.zw + slice_offset * 0.5 * vec2(aspect, 1.0);
14 }