diff options
| author | Ray <[email protected]> | 2020-01-24 18:23:36 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2020-01-24 18:23:36 +0100 |
| commit | d41386d661518150091e5c3ecf01c440b1d995c9 (patch) | |
| tree | 436739f3ac1a250841331057c742166f9ed9a132 /src/models.c | |
| parent | 7ae426c377e9ae74119dc11c5ec73f74035843dc (diff) | |
| download | raylib-d41386d661518150091e5c3ecf01c440b1d995c9.tar.gz raylib-d41386d661518150091e5c3ecf01c440b1d995c9.zip | |
Minor tweaks to avoid warnings
Diffstat (limited to 'src/models.c')
| -rw-r--r-- | src/models.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/models.c b/src/models.c index d86a0d8f..0ebde866 100644 --- a/src/models.c +++ b/src/models.c @@ -2373,9 +2373,9 @@ void MeshBinormals(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]); + //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? } @@ -3048,7 +3048,7 @@ static Model LoadIQM(const char *fileName) //----------------------------------------------------------------------------------- // IQM vertex data types - typedef enum { + enum { IQM_POSITION = 0, IQM_TEXCOORD = 1, IQM_NORMAL = 2, @@ -3057,7 +3057,7 @@ static Model LoadIQM(const char *fileName) IQM_BLENDWEIGHTS = 5, IQM_COLOR = 6, // NOTE: Vertex colors unused by default IQM_CUSTOM = 0x10 // NOTE: Custom vertex values unused by default - } IQMVertexType; + }; Model model = { 0 }; |
