qvolray

view sdr/demo.p.glsl @ 19:784d3d321caa

more demo
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 11 Apr 2012 06:44:06 +0300
parents 3d05c261a2f4
children 4c62be57fc1a
line source
1 void main()
2 {
3 float val = 0.7;
4 float len = length(gl_FragCoord.xyz);
5 /*if(len < 0.5) {
6 val = 0.7;
7 }*/
9 gl_FragColor = vec4(gl_FragCoord.xyz / len, val);
10 }