summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2024-07-07 21:02:20 +0200
committerRay <[email protected]>2024-07-07 21:02:20 +0200
commitb8e51794310e58e477cfa630059d061fcd5fa1f4 (patch)
tree95e2f40a04d17139b34a5007c1e9ba238f4aebe6 /src
parentdf4ff4e78b4e2d35f05ffc402a2d72fe4f047a23 (diff)
downloadraylib-b8e51794310e58e477cfa630059d061fcd5fa1f4.tar.gz
raylib-b8e51794310e58e477cfa630059d061fcd5fa1f4.zip
Update rmodels.c
Diffstat (limited to 'src')
-rw-r--r--src/rmodels.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rmodels.c b/src/rmodels.c
index 31b4c574..c6acff5d 100644
--- a/src/rmodels.c
+++ b/src/rmodels.c
@@ -5172,7 +5172,7 @@ static Model LoadGLTF(const char *fileName)
// Transform the vertices
float *vertices = model.meshes[meshIndex].vertices;
- for (int k = 0; k < attribute->count; k++)
+ for (unsigned int k = 0; k < attribute->count; k++)
{
Vector3 vt = Vector3Transform((Vector3){ vertices[3*k], vertices[3*k+1], vertices[3*k+2] }, worldMatrix);
vertices[3*k] = vt.x;
@@ -5196,7 +5196,7 @@ static Model LoadGLTF(const char *fileName)
// Transform the normals
float *normals = model.meshes[meshIndex].normals;
- for (int k = 0; k < attribute->count; k++)
+ for (unsigned int k = 0; k < attribute->count; k++)
{
Vector3 nt = Vector3Transform((Vector3){ normals[3*k], normals[3*k+1], normals[3*k+2] }, worldMatrixNormals);
normals[3*k] = nt.x;
@@ -5220,7 +5220,7 @@ static Model LoadGLTF(const char *fileName)
// Transform the tangents
float *tangents = model.meshes[meshIndex].tangents;
- for (int k = 0; k < attribute->count; k++)
+ for (unsigned int k = 0; k < attribute->count; k++)
{
Vector3 tt = Vector3Transform((Vector3){ tangents[3*k], tangents[3*k+1], tangents[3*k+2] }, worldMatrix);
tangents[3*k] = tt.x;