15 lines
241 B
GLSL
Executable file
15 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;
|
|
}
|