armory/Shaders/debug_normals/debug_normals.frag.glsl
2017-12-13 14:44:21 +01:00

16 lines
241 B
GLSL
Executable file

#version 450
#include "compiled.glsl"
#include "std/gbuffer.glsl"
uniform sampler2D tex;
in vec2 texCoord;
out vec4 fragColor;
void main() {
vec4 col = texture(tex, texCoord);
vec3 n = getNor(col.rg);
fragColor.rgb = n * 0.5 + 0.5;
}