2024-07-07 18:30:53 +10:00
|
|
|
|
2024-07-09 17:45:05 +10:00
|
|
|
#include "header.glsl"
|
|
|
|
#include "atlas.glsl"
|
2024-07-07 18:30:53 +10:00
|
|
|
|
|
|
|
out vec4 f_colour;
|
|
|
|
|
|
|
|
in VS_OUT {
|
|
|
|
vec4 pos;
|
|
|
|
vec4 colour;
|
2024-07-09 17:45:05 +10:00
|
|
|
vec2 uv;
|
|
|
|
flat uint texid;
|
2024-07-07 18:30:53 +10:00
|
|
|
} vin;
|
|
|
|
|
|
|
|
uniform mat4 u_colour = mat4(1);
|
|
|
|
|
|
|
|
void main() {
|
2024-07-09 17:45:05 +10:00
|
|
|
f_colour = u_colour * vin.colour * atlas_read_texture(vin.texid, vin.uv);
|
2024-07-07 18:30:53 +10:00
|
|
|
}
|
|
|
|
|