taisei/misc/glslc-test.frag.glsl

12 lines
253 B
GLSL

#version 430 core
layout(location = 0) in vec2 texCoord;
layout(location = 0) out vec4 outColor;
layout(location = 0) uniform sampler2D tex;
layout(location = 1) uniform vec4 color;
void main(void) {
outColor = texture(tex, texCoord) * color;
}