From 1f11c9f8e5a4dc76be3cbbcbf7b7739b42b22e58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20Sobczy=C5=84ski?= Date: Wed, 4 Nov 2020 16:18:40 +0100 Subject: [PATCH] added description to shouldBeX in mesh --- src/engine/include/models/mesh.hpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/engine/include/models/mesh.hpp b/src/engine/include/models/mesh.hpp index 6b168bd..ea5f201 100644 --- a/src/engine/include/models/mesh.hpp +++ b/src/engine/include/models/mesh.hpp @@ -34,7 +34,15 @@ public: Vector3 position, rotation; float scale; - u8 shouldBeLighted, shouldBeBackfaceCulled, shouldBeFrustumCulled; + u8 shouldBeLighted; + /** + * When true, invisible triangles of mesh materials are not drawn. + */ + u8 shouldBeBackfaceCulled; + /** + * When true, mesh materials are not drawn when they are outside of view frustum. + */ + u8 shouldBeFrustumCulled; color_t color; clutbuffer_t clut; lod_t lod;