raysan5 hace 8 años
padre
commit
c764b3d03e
Se han modificado 3 ficheros con 3 adiciones y 3 borrados
  1. 1 1
      examples/models/models_cubicmap.c
  2. 1 1
      examples/models/models_material_pbr.c
  3. 1 1
      src/models.c

+ 1 - 1
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
 

+ 1 - 1
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);
 

+ 1 - 1
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