Add MikkTSpace Tangets code as 3rdparty lib
This commit is contained in:
@@ -50,7 +50,7 @@ static void get_tex_coords(const SMikkTSpaceContext *context, float outuv[], int
|
||||
} else if (currentMesh->mNumUVComponents[iVert] == 3){
|
||||
outuv[0] = t.x;
|
||||
outuv[1] = t.y;
|
||||
outuv[2] = t.z;
|
||||
outuv[2] = 0.0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -11,9 +11,11 @@ public:
|
||||
~GenerateMikkTSpaceTangents() override = default;
|
||||
bool IsActive(unsigned int pFlags) const override;
|
||||
void Execute(aiScene* pScene) override;
|
||||
void SetupProperties(const Importer *pImp) override;
|
||||
void ExecutePerMesh(aiMesh *mesh);
|
||||
|
||||
private:
|
||||
bool mActive = false;
|
||||
SMikkTSpaceInterface mIface;
|
||||
SMikkTSpaceContext mContext;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user