File: normalMap.frag

package info (click to toggle)
meshlab 2022.02%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 47,348 kB
  • sloc: cpp: 536,635; ansic: 27,783; sh: 539; makefile: 36
file content (7 lines) | stat: -rw-r--r-- 164 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
varying vec3 normal;

void main(){
  vec3 n = normalize(normal)* 0.5 + 0.5;
  //gl_FragColor = vec4(vec3(n), gl_FragCoord.z);
  gl_FragColor = vec4(vec3(n), 1.0);
}