pituicat/res/shaders/frag.shader

18 lines
327 B
Plaintext
Raw Normal View History

2020-12-06 07:14:05 +00:00
#version 330 core
layout(location = 0) out vec4 color;
in vec4 v_color;
in vec2 v_texCoord;
in float v_texIndex;
2020-12-14 02:12:33 +00:00
uniform sampler2D u_texture;
2020-12-06 07:14:05 +00:00
void main()
{
//vec4 texColor = texture(u_texture, v_texCoord);
//int index = int(v_texIndex);
2020-12-14 02:12:33 +00:00
color = texture(u_texture, v_texCoord);
//color = vec4(0.0, 1.0, 0.0, 1.0);
2020-12-06 07:14:05 +00:00
}