armory/Shaders/debug_normals/debug_normals.frag.glsl
luboslenco 93cc102bf5 Faster
2018-12-06 15:23:08 +01:00

16 lines
248 B
GLSL
Executable file

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