let-engine 0.10.0

game engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#version 450
layout (location = 0) out vec4 f_color;
layout (location = 1) in vec2 tex_coords;
layout (set = 0, binding = 1) uniform Object {
	vec4 color;
	uint layer;
} object;
layout (set = 1, binding = 0) uniform sampler2D tex;

void main() {
    f_color = texture(tex, tex_coords * 0.5 + 0.5) * object.color;
}