qvolray

annotate sdr/demo.p.glsl @ 26:f4cc61b5a3eb

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 14 Apr 2012 04:59:14 +0300
parents 4c62be57fc1a
children 70b937008134
rev   line source
nuclear@18 1 void main()
nuclear@18 2 {
nuclear@21 3 vec3 pos = gl_TexCoord[0].xyz * 2.0 - 1.0;
nuclear@18 4
nuclear@21 5 float len = length(pos);
nuclear@22 6 float val = 0.1 / (len * len);
nuclear@21 7
nuclear@21 8 gl_FragColor = vec4(-pos / len, val);
nuclear@18 9 }