Moved normal/tangents generation to submeshes
Former-commit-id: d043284a1a5810b429cc76d8bc071010985a523b
This commit is contained in:
@@ -40,8 +40,6 @@ class NAZARA_API NzSkeletalMesh final : public NzSubMesh
|
||||
bool Create(unsigned int vertexCount, unsigned int weightCount);
|
||||
void Destroy();
|
||||
|
||||
void Finish();
|
||||
|
||||
const NzCubef& GetAABB() const;
|
||||
nzAnimationType GetAnimationType() const final;
|
||||
void* GetBindPoseBuffer();
|
||||
|
||||
@@ -25,8 +25,6 @@ class NAZARA_API NzStaticMesh final : public NzSubMesh, NzResourceListener
|
||||
bool Create(NzVertexBuffer* vertexBuffer);
|
||||
void Destroy();
|
||||
|
||||
void Finish();
|
||||
|
||||
bool GenerateAABB();
|
||||
|
||||
const NzCubef& GetAABB() const override;
|
||||
|
||||
@@ -30,7 +30,9 @@ class NAZARA_API NzSubMesh : public NzResource
|
||||
NzSubMesh(const NzMesh* parent);
|
||||
virtual ~NzSubMesh();
|
||||
|
||||
virtual void Finish() = 0; ///DOC: Mets le mesh dans sa position d'origine et calcule son AABB
|
||||
void GenerateNormals();
|
||||
void GenerateNormalsAndTangents();
|
||||
void GenerateTangents();
|
||||
|
||||
virtual const NzCubef& GetAABB() const = 0;
|
||||
virtual nzAnimationType GetAnimationType() const = 0;
|
||||
|
||||
Reference in New Issue
Block a user