From 26b4b82a7be2c029491f3009b66b3cbf8db5d93c Mon Sep 17 00:00:00 2001 From: vimene Date: Thu, 2 Jan 2025 13:25:14 +0100 Subject: various improvements - cleaned up the computation of the camera's matrix - changed VertexData to being a struct which transmit data between the "vertex shader" and the "fragment shader" - started working on keyboard and mouse controls - added fov (field of view) - changed quaternion to euler angles conversion, from zyx to zxy - fixed computations of z coordinates in triangle rendering - improved naming in the triangle rasterizer --- src/o3d/mesh.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/o3d/mesh.h') diff --git a/src/o3d/mesh.h b/src/o3d/mesh.h index 1c70ca4..acc48b5 100644 --- a/src/o3d/mesh.h +++ b/src/o3d/mesh.h @@ -6,19 +6,17 @@ #include #include #include "math/vector.h" -#include "o3d/vertex_data.h" namespace engine::o3d { using engine::math::Vector3, engine::math::Vector4; struct Mesh { - static Mesh plane(); + static Mesh plane(float width, float height); std::vector vertices; std::vector normals; - std::vector vertices_data; - std::vector, 3>> indices; + std::vector, 3>> indices; }; } -- cgit v1.2.3