qvolray
diff 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 diff
1.1 --- a/sdr/demo.p.glsl Wed Apr 11 06:08:59 2012 +0300 1.2 +++ b/sdr/demo.p.glsl Wed Apr 11 06:44:06 2012 +0300 1.3 @@ -1,10 +1,10 @@ 1.4 void main() 1.5 { 1.6 - float val = 0.0; 1.7 + float val = 0.7; 1.8 float len = length(gl_FragCoord.xyz); 1.9 - if(len < 0.5) { 1.10 - val = 1.0; 1.11 - } 1.12 + /*if(len < 0.5) { 1.13 + val = 0.7; 1.14 + }*/ 1.15 1.16 gl_FragColor = vec4(gl_FragCoord.xyz / len, val); 1.17 }