qvolray

view sdr/demo.p.glsl @ 18:3d05c261a2f4

demo metaballs crash & burn
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 11 Apr 2012 06:08:59 +0300
parents
children 784d3d321caa
line source
1 void main()
2 {
3 float val = 0.0;
4 float len = length(gl_FragCoord.xyz);
5 if(len < 0.5) {
6 val = 1.0;
7 }
9 gl_FragColor = vec4(gl_FragCoord.xyz / len, val);
10 }