Made Renderer a separate module

This commit is contained in:
Lorenzo Torres 2025-03-27 21:42:46 +01:00
parent 09691ec4d9
commit 1730f1e298
14 changed files with 292 additions and 260 deletions

21
src/renderer/Camera.zig Normal file
View file

@ -0,0 +1,21 @@
const std = @import("std");
const ecs = @import("ecs");
const math = @import("../math.zig");
const Camera = @This();
const UP = @Vector(3, f32){ 0.0, 1.0, 0.0 };
pub const Uniform = struct {
proj: math.Matrix,
view: math.Matrix,
model: math.Matrix,
};
uniform: Uniform,
position: @Vector(3, f32),
target: @Vector(3, f32),
direction: @Vector(3, f32),
right: @Vector(3, f32),
up: @Vector(3, f32),
fn input(pool: *ecs.Pool) void {
}