qt6windows7/tests/manual/rhi/displacement/material.frag
2023-11-01 22:23:55 +01:00

11 lines
176 B
GLSL

#version 440
layout(location = 0) out vec4 fragColor;
layout(location = 1) in vec3 in_normal;
void main()
{
fragColor = vec4((normalize(in_normal) + 1.0) / 2.0, 1.0);
}