Added camera uniforms for projection and view matrix

This commit is contained in:
Lorenzo Torres 2025-08-04 17:23:00 +02:00
parent 59e3997056
commit dcb2ee0584
7 changed files with 92 additions and 28 deletions

View file

@ -3,6 +3,7 @@ const Allocator = std.mem.Allocator;
const components = @import("components.zig");
const sparse = @import("sparse.zig");
const Renderer = @import("renderer");
const Camera = @import("renderer").Camera;
const Input = @import("sideros").Input;
const ecs = @import("ecs.zig");
@ -11,6 +12,7 @@ pub const SystemGroup = []const System;
pub const SyncGroup = []const System;
pub const Resources = struct {
camera: Camera,
renderer: Renderer,
input: Input,
delta_time: f64 = 0.0,