diff options
| author | Ray <[email protected]> | 2019-12-11 23:14:32 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2019-12-11 23:14:32 +0100 |
| commit | 1397242d885b8ae65e61dfb025872029d7a671f2 (patch) | |
| tree | a408de799f8474ea6022f9b1d7533cf1b8d571b7 /src | |
| parent | b8246d8592dba4d1f0ee49831f86d99ce0c7dff1 (diff) | |
| download | raylib-1397242d885b8ae65e61dfb025872029d7a671f2.tar.gz raylib-1397242d885b8ae65e61dfb025872029d7a671f2.zip | |
Small code tweak to avoid warning
Diffstat (limited to 'src')
| -rw-r--r-- | src/models.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/models.c b/src/models.c index 610e185f..ee163efa 100644 --- a/src/models.c +++ b/src/models.c @@ -2372,10 +2372,9 @@ void MeshBinormals(Mesh *mesh) { 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] }; - float tangentW = mesh->tangents[i*4 + 3]; - + Vector3 binormal = Vector3Multiply(Vector3CrossProduct(normal, tangent), mesh->tangents[i*4 + 3]); + // TODO: Register computed binormal in mesh->binormal? - // Vector3 binormal = Vector3Multiply(Vector3CrossProduct(normal, tangent), tangentW); } } |
