summaryrefslogtreecommitdiffhomepage
path: root/examples/models/models_loading.c
diff options
context:
space:
mode:
authorRay <[email protected]>2021-10-18 23:17:37 +0200
committerRay <[email protected]>2021-10-18 23:17:37 +0200
commit7763ccd8ad007c8854bcdfb64213c357e40a3085 (patch)
treee8b85533d81096196cc04d8848e25815f2a8b435 /examples/models/models_loading.c
parentd8e0b2e27c021364efc87edd5ab29deb946f7062 (diff)
downloadraylib-7763ccd8ad007c8854bcdfb64213c357e40a3085.tar.gz
raylib-7763ccd8ad007c8854bcdfb64213c357e40a3085.zip
Resync .obj models! gitignore was ignoring them!
Diffstat (limited to 'examples/models/models_loading.c')
-rw-r--r--examples/models/models_loading.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/models/models_loading.c b/examples/models/models_loading.c
index a688a8b8..0c9b702b 100644
--- a/examples/models/models_loading.c
+++ b/examples/models/models_loading.c
@@ -39,13 +39,13 @@ int main(void)
camera.fovy = 45.0f; // Camera field-of-view Y
camera.projection = CAMERA_PERSPECTIVE; // Camera mode type
- Model model = LoadModel("resources/models/castle.obj"); // Load model
- Texture2D texture = LoadTexture("resources/models/castle_diffuse.png"); // Load model texture
- model.materials[0].maps[MATERIAL_MAP_DIFFUSE].texture = texture; // Set map diffuse texture
+ Model model = LoadModel("resources/models/obj/castle.obj"); // Load model
+ Texture2D texture = LoadTexture("resources/models/obj/castle_diffuse.png"); // Load model texture
+ model.materials[0].maps[MATERIAL_MAP_DIFFUSE].texture = texture; // Set map diffuse texture
- Vector3 position = { 0.0f, 0.0f, 0.0f }; // Set model position
+ Vector3 position = { 0.0f, 0.0f, 0.0f }; // Set model position
- BoundingBox bounds = GetMeshBoundingBox(model.meshes[0]); // Set model bounds
+ BoundingBox bounds = GetMeshBoundingBox(model.meshes[0]); // Set model bounds
// NOTE: bounds are calculated from the original size of the model,
// if model is scaled on drawing, bounds must be also scaled