#version 330 core out vec4 FragColor; in vec3 pos; in vec2 texPos; uniform sampler2D sprite; void main() { FragColor = texture(sprite, texPos); }