3dphotoshoot

diff sdr/normvis.p.glsl @ 25:ac80210d5fbe

preparing a pc version for easier development of non-android-specifics
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 18 Jun 2015 03:12:30 +0300
parents
children 3d082c566b53
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/sdr/normvis.p.glsl	Thu Jun 18 03:12:30 2015 +0300
     1.3 @@ -0,0 +1,10 @@
     1.4 +precision mediump float;
     1.5 +
     1.6 +varying vec3 normal;
     1.7 +
     1.8 +void main()
     1.9 +{
    1.10 +	vec3 ncol = normal * 0.5 + 0.5;
    1.11 +	gl_FragColor.rgb = ncol;
    1.12 +	gl_FragColor.a = 1.0;
    1.13 +}