qtk/resources/shaders/fragment/rgb-normals.frag

12 lines
177 B
GLSL
Raw Normal View History

2021-09-03 16:56:57 +00:00
#version 330
// Color input from Vertex shader
in vec3 vNormal;
// Final fragment color
out vec4 fColor;
void main()
{
fColor = vec4(abs(vNormal), 1.0f); // Reapply alpha
}