2014-01-15 19:08:37 -05:00
|
|
|
#version 130
|
|
|
|
noperspective in vec3 nor;
|
2014-01-19 13:31:00 -05:00
|
|
|
out vec4 FragColor;
|
2014-01-15 19:08:37 -05:00
|
|
|
|
|
|
|
void main(void)
|
|
|
|
{
|
2014-01-19 13:31:00 -05:00
|
|
|
FragColor = vec4(0.5 * normalize(nor) + 0.5, gl_FragCoord.z);
|
2014-01-15 19:08:37 -05:00
|
|
|
}
|