grafika_komputerowa/grk/project/shaders/shader_sprite.frag

16 lines
216 B
GLSL
Raw Permalink Normal View History

2024-01-22 00:43:08 +01:00
#version 430 core
uniform sampler2D colorTexture;
in vec3 worldPos;
in vec2 texCoord;
in vec3 color;
out vec4 outColor;
void main()
{
outColor = texture(colorTexture, texCoord);
outColor *= vec4(color, 1.0);
}