Collada
-=-=-=- -Fixed some DAE import & export bugs -Changed Collada exporter to use the mesh loops API -Added tangent export to Collada exporter -Added triangulation option to Collada exporter -Changed a little how normalmaps are handled in shader. Not sure if it's working properly, be careful. -Fixed some strange bug with kinematic bodies #776 -Fix release compilaiton issues #782
This commit is contained in:
parent
13a848e332
commit
a84ba9c853
25 changed files with 363 additions and 198 deletions
|
|
@ -30,7 +30,7 @@
|
|||
#define SURFACE_TOOL_H
|
||||
|
||||
#include "scene/resources/mesh.h"
|
||||
|
||||
#include "mikktspace.h"
|
||||
|
||||
|
||||
class SurfaceTool : public Reference {
|
||||
|
|
@ -82,6 +82,14 @@ private:
|
|||
|
||||
void _create_list(const Ref<Mesh>& p_existing, int p_surface, List<Vertex> *r_vertex, List<int> *r_index,int &lformat);
|
||||
|
||||
|
||||
//mikktspace callbacks
|
||||
static int mikktGetNumFaces(const SMikkTSpaceContext * pContext);
|
||||
static int mikktGetNumVerticesOfFace(const SMikkTSpaceContext * pContext, const int iFace);
|
||||
static void mikktGetPosition(const SMikkTSpaceContext * pContext, float fvPosOut[], const int iFace, const int iVert);
|
||||
static void mikktGetNormal(const SMikkTSpaceContext * pContext, float fvNormOut[], const int iFace, const int iVert);
|
||||
static void mikktGetTexCoord(const SMikkTSpaceContext * pContext, float fvTexcOut[], const int iFace, const int iVert);
|
||||
static void mikktSetTSpaceBasic(const SMikkTSpaceContext * pContext, const float fvTangent[], const float fSign, const int iFace, const int iVert);
|
||||
protected:
|
||||
|
||||
static void _bind_methods();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue