3dphotoshoot

view sdr/normvis.p.glsl @ 27:3d082c566b53

fixed all the bugs, pc version works
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 18 Jun 2015 04:32:25 +0300
parents ac80210d5fbe
children
line source
1 #ifdef GL_ES
2 precision mediump float;
3 #endif
5 varying vec3 normal;
7 void main()
8 {
9 vec3 ncol = normalize(normal) * 0.5 + 0.5;
10 gl_FragColor.rgb = ncol;
11 gl_FragColor.a = 1.0;
12 }