From e77b01d4b5504cea08a3f88cf8502897d868a1d3 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 16 Nov 2026 18:04:21 -0300 Subject: Add glTF scene rendering, resource setup and 9P controls --- src/gltf_render/types.zig | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/gltf_render/types.zig (limited to 'src/gltf_render/types.zig') diff --git a/src/gltf_render/types.zig b/src/gltf_render/types.zig new file mode 100644 index 0000000..29b784f --- /dev/null +++ b/src/gltf_render/types.zig @@ -0,0 +1,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" } }; +}; -- cgit v1.3