|
@@ -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)
|
|
|
{
|