From c764b3d03eb85ea303192a48f36797ca0cd77067 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Tue, 25 Jul 2017 18:09:58 +0200 Subject: [PATCH] Some tweaks --- examples/models/models_cubicmap.c | 2 +- examples/models/models_material_pbr.c | 2 +- src/models.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/models/models_cubicmap.c b/examples/models/models_cubicmap.c index 268d480a..a8faa7c0 100644 --- a/examples/models/models_cubicmap.c +++ b/examples/models/models_cubicmap.c @@ -31,7 +31,7 @@ int main() // NOTE: By default each cube is mapped to one part of texture atlas Texture2D texture = LoadTexture("resources/cubicmap_atlas.png"); // Load map texture - model.material.maps[MAP_DIFFUSE].texture = texture; // Set map diffuse texture + model.material.maps[MAP_DIFFUSE].texture = texture; // Set map diffuse texture Vector3 mapPosition = { -16.0f, 0.0f, -8.0f }; // Set model position diff --git a/examples/models/models_material_pbr.c b/examples/models/models_material_pbr.c index d55aa773..1f069468 100644 --- a/examples/models/models_material_pbr.c +++ b/examples/models/models_material_pbr.c @@ -71,7 +71,7 @@ int main() Begin3dMode(camera); - DrawModel(model, VectorZero(), 1.0f, WHITE); + DrawModel(model, Vector3Zero(), 1.0f, WHITE); DrawGrid(10, 1.0f); diff --git a/src/models.c b/src/models.c index 4ab27926..accab7e8 100644 --- a/src/models.c +++ b/src/models.c @@ -1979,7 +1979,7 @@ static Mesh LoadOBJ(const char *fileName) // TODO: add binormals to mesh struct and assign buffers id and locations properly /* // Calculate vertex binormal - Vector3 binormal = VectorSubtract(b1, b2); + Vector3 binormal = Vector3Subtract(b1, b2); Vector3Scale(&binormal, r); // Apply calculated binormals data to mesh struct