qvolray

annotate 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
rev   line source
nuclear@18 1 void main()
nuclear@18 2 {
nuclear@19 3 float val = 0.7;
nuclear@18 4 float len = length(gl_FragCoord.xyz);
nuclear@19 5 /*if(len < 0.5) {
nuclear@19 6 val = 0.7;
nuclear@19 7 }*/
nuclear@18 8
nuclear@18 9 gl_FragColor = vec4(gl_FragCoord.xyz / len, val);
nuclear@18 10 }