diff options
| author | Ray <[email protected]> | 2022-07-05 12:55:51 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2022-07-05 12:55:51 +0200 |
| commit | e0f0a5f663af0c12cfe6a88fec4634358e76d126 (patch) | |
| tree | ef91439fa06edc99b87eb45c710cdb8b15cd0555 /src | |
| parent | d0f53db65f4b245f536bc6a9f386a94466cf37c2 (diff) | |
| download | raylib-e0f0a5f663af0c12cfe6a88fec4634358e76d126.tar.gz raylib-e0f0a5f663af0c12cfe6a88fec4634358e76d126.zip | |
REMOVED: `GenMeshBinormals()`, actually, never implemented
Diffstat (limited to 'src')
| -rw-r--r-- | src/raylib.h | 1 | ||||
| -rw-r--r-- | src/rmodels.c | 13 |
2 files changed, 0 insertions, 14 deletions
diff --git a/src/raylib.h b/src/raylib.h index e57c71bc..f9db8a17 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1447,7 +1447,6 @@ RLAPI void DrawMeshInstanced(Mesh mesh, Material material, const Matrix *transfo RLAPI bool ExportMesh(Mesh mesh, const char *fileName); // Export mesh data to file, returns true on success RLAPI BoundingBox GetMeshBoundingBox(Mesh mesh); // Compute mesh bounding box limits RLAPI void GenMeshTangents(Mesh *mesh); // Compute mesh tangents -RLAPI void GenMeshBinormals(Mesh *mesh); // Compute mesh binormals // Mesh generation functions RLAPI Mesh GenMeshPoly(int sides, float radius); // Generate polygonal mesh diff --git a/src/rmodels.c b/src/rmodels.c index e63d2767..1f6e9605 100644 --- a/src/rmodels.c +++ b/src/rmodels.c @@ -3261,19 +3261,6 @@ void GenMeshTangents(Mesh *mesh) TRACELOG(LOG_INFO, "MESH: Tangents data computed and uploaded for provided mesh"); } -// Compute mesh binormals (aka bitangent) -void GenMeshBinormals(Mesh *mesh) -{ - for (int i = 0; i < mesh->vertexCount; i++) - { - //Vector3 normal = { mesh->normals[i*3 + 0], mesh->normals[i*3 + 1], mesh->normals[i*3 + 2] }; - //Vector3 tangent = { mesh->tangents[i*4 + 0], mesh->tangents[i*4 + 1], mesh->tangents[i*4 + 2] }; - //Vector3 binormal = Vector3Scale(Vector3CrossProduct(normal, tangent), mesh->tangents[i*4 + 3]); - - // TODO: Register computed binormal in mesh->binormal? - } -} - // Draw a model (with texture if set) void DrawModel(Model model, Vector3 position, float scale, Color tint) { |
