qvolray

view sdr/demo.p.glsl @ 33:437e1ba9cf39

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