blob: 29b784f29a14b300ae4bffd98ea8a161edde2270 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//! These types generate the GLSL vertex and uniform declarations.
pub const Vertex = extern struct {
position: [3]f32,
normal: [3]f32,
color: [4]f32 = .{ 1, 1, 1, 1 },
pub const glsl = .vertex;
};
pub const Transform = extern struct {
model: [4][4]f32,
view_projection: [4][4]f32,
color: [4]f32,
pub const glsl = .{ .uniform = .{ .set = 1, .instance = "transform" } };
};
|