spacebox/demo/cube/shaders/triangle.frag

11 lines
162 B
GLSL
Raw Normal View History

2018-11-21 23:25:36 -05:00
#version 130
2018-11-26 03:45:33 -05:00
in vec4 ex_Color;
2018-11-21 23:25:36 -05:00
in vec2 UV;
uniform sampler2D myTextureSampler;
2018-11-26 03:45:33 -05:00
void main(void)
{
2019-04-19 04:11:08 -04:00
gl_FragColor = texture(myTextureSampler, UV) * ex_Color;
2018-11-21 23:25:36 -05:00
}