gaclen 0.0.14

A library for handling anything a game client needs to do.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#version 450

// #include "light.glsl"

// per vertex input
layout(location = 0) in vec3 position;
layout(location = 1) in vec4 color;

// uniform
layout(set = 0) uniform Model { mat4 model_matrix; } u_model;
layout(set = 1) uniform Light { mat4 view_projection_matrix; } u_light;

void main() {
	gl_Position = u_light.view_projection_matrix * (u_model.model_matrix * vec4(position, 1.0));
}