Made Renderer a separate module
This commit is contained in:
parent
09691ec4d9
commit
1730f1e298
14 changed files with 292 additions and 260 deletions
21
src/renderer/Camera.zig
Normal file
21
src/renderer/Camera.zig
Normal 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 {
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue