15 lines
236 B
Forth
15 lines
236 B
Forth
|
#version 430
|
||
|
|
||
|
uniform sampler2D texture;
|
||
|
|
||
|
smooth in vec2 tex_coords;
|
||
|
flat in vec4 color_part;
|
||
|
|
||
|
out vec4 FragColor;
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
vec4 tex_color = texture2D(texture, tex_coords);
|
||
|
FragColor = vec4(tex_color.xyz, 1.0) * color_part;
|
||
|
}
|