coffee 0.4.0

An opinionated 2D game engine focused on simplicity, explicitness, and type-safety
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#version 150 core

uniform sampler2DArray t_Texture;
flat in uint v_Layer;
in vec2 v_Uv;

out vec4 Target0;

layout (std140) uniform Globals {
    mat4 u_MVP;
};

void main() {
    Target0 = texture(t_Texture, vec3(v_Uv, v_Layer));
}