From 6b765a85cf81bf4b7162e4c9280dd4054581c611 Mon Sep 17 00:00:00 2001 From: vimene Date: Mon, 11 Dec 2023 12:42:46 +0100 Subject: improved mesh definition - In the context of mesh definition, splited indices into vertex index, normal index and vertex data index to be able to specify different normals and vertex data for different faces using the same vertex --- src/o3d/deriv_vertex.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/o3d/deriv_vertex.h') diff --git a/src/o3d/deriv_vertex.h b/src/o3d/deriv_vertex.h index 8945696..7524f9b 100644 --- a/src/o3d/deriv_vertex.h +++ b/src/o3d/deriv_vertex.h @@ -5,13 +5,13 @@ namespace engine::o3d { -class DerivedVertex4 { +class DerivedVertex { public: - engine::math::Vector4 point; + engine::math::Vector4 vertex; float b0, b1; - DerivedVertex4(engine::math::Vector4 point, float b0, float b1); - DerivedVertex4 div_by_w() const; + DerivedVertex(engine::math::Vector4 vertex, float b0, float b1); + DerivedVertex div_by_w() const; }; } -- cgit v1.2.3