quakeforge/libs/video/renderer/vulkan/shader/iqm_fwd.frag
Bill Currie 4471a40494 [vulkan] Get the forward renderer passing validation
It looks horrible due to the lack of lighting etc, but it's good enough
for basic testing, especially of my render job design (that passed with
flying colors).
2023-07-02 19:58:56 +09:00

30 lines
608 B
GLSL

#version 450
layout (set = 1, binding = 0) uniform sampler2D Skin;
layout (push_constant) uniform PushConstants {
layout (offset = 68)
uint colorA;
uint colorB;
vec4 base_color;
vec4 fog;
};
layout (location = 0) in vec2 texcoord;
layout (location = 1) in vec4 position;
layout (location = 2) in vec3 fnormal;
layout (location = 3) in vec3 ftangent;
layout (location = 4) in vec3 fbitangent;
layout (location = 5) in vec4 color;
layout (location = 0) out vec4 frag_color;
void
main (void)
{
vec4 c;
c = texture (Skin, texcoord);// * color;
frag_color = c;
}