zig-chess/shaders/piece.frag

12 lines
274 B
GLSL

#version 450
layout(set = 0, binding = 0) uniform sampler2D piece_texture;
layout(location = 0) in vec4 frag_color;
layout(location = 1) in vec2 frag_uv;
layout(location = 0) out vec4 out_color;
void main() {
out_color = texture(piece_texture, frag_uv) * frag_color;
}