diff options
author | vimene <vincent.menegaux@gmail.com> | 2023-12-11 12:42:46 +0100 |
---|---|---|
committer | vimene <vincent.menegaux@gmail.com> | 2023-12-11 12:42:46 +0100 |
commit | 6b765a85cf81bf4b7162e4c9280dd4054581c611 (patch) | |
tree | 4156dff7c632e6511fe18daebeea506744ad1ff7 /src/o3d/deriv_vertex.h | |
parent | ff2c784d4c4100f0301628e8a52a6910d776d067 (diff) | |
download | engine-6b765a85cf81bf4b7162e4c9280dd4054581c611.tar.gz |
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
Diffstat (limited to 'src/o3d/deriv_vertex.h')
-rw-r--r-- | src/o3d/deriv_vertex.h | 8 |
1 files changed, 4 insertions, 4 deletions
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; }; } |