2022-07-19 03:56:08 -04:00
|
|
|
layout(location = 0) in vec4 f_vertex_color;
|
2022-07-21 00:26:06 -04:00
|
|
|
layout(location = 1) in vec2 f_uv;
|
2022-07-28 01:37:09 -04:00
|
|
|
layout(location = 3) flat in int f_material_id;
|
2022-07-19 03:56:08 -04:00
|
|
|
|
|
|
|
layout(location = 0) out vec4 o_color;
|
|
|
|
|
2022-07-21 00:26:06 -04:00
|
|
|
#include "utils/sample_mesh_texture.h"
|
|
|
|
|
2022-07-19 03:56:08 -04:00
|
|
|
void main()
|
|
|
|
{
|
2022-07-21 00:26:06 -04:00
|
|
|
vec3 mixed_color = sampleMeshTexture0(f_material_id, f_uv).xyz * f_vertex_color.xyz;
|
|
|
|
o_color = vec4(mixed_color, 1.0);
|
2022-07-19 03:56:08 -04:00
|
|
|
}
|