From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- Runtime/Geometry/TangentSpaceCalculation.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Runtime/Geometry/TangentSpaceCalculation.h (limited to 'Runtime/Geometry/TangentSpaceCalculation.h') diff --git a/Runtime/Geometry/TangentSpaceCalculation.h b/Runtime/Geometry/TangentSpaceCalculation.h new file mode 100644 index 0000000..2e925b0 --- /dev/null +++ b/Runtime/Geometry/TangentSpaceCalculation.h @@ -0,0 +1,13 @@ +#ifndef TANGENTSPACECALCULATION_H +#define TANGENTSPACECALCULATION_H + +class Vector3f; +class Vector2f; +class Matrix3x3f; + +void CreateTangentSpaceTangents (const Vector3f* pPositions, const Vector2f* tex, const Vector3f* normals, + Matrix3x3f* avgOrthonormalBases, int vertexCount, + const int* indices, int faceCount); + + +#endif -- cgit v1.1-26-g67d0