diff options
| author | raysan5 <[email protected]> | 2021-10-12 21:01:49 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2021-10-12 21:01:49 +0200 |
| commit | f1659d78d3ed1639d5a9ee2d5bd530fce0a9ff1b (patch) | |
| tree | 20953a63c6803767d11629e43d9d9dbb66106f0b /examples/models/models_mesh_picking.c | |
| parent | 007e840be1572293b6c416f26e9fead42305d71b (diff) | |
| download | raylib-f1659d78d3ed1639d5a9ee2d5bd530fce0a9ff1b.tar.gz raylib-f1659d78d3ed1639d5a9ee2d5bd530fce0a9ff1b.zip | |
Reviewed models examples paths
Diffstat (limited to 'examples/models/models_mesh_picking.c')
| -rw-r--r-- | examples/models/models_mesh_picking.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/models/models_mesh_picking.c b/examples/models/models_mesh_picking.c index 0ac70907..f48683e4 100644 --- a/examples/models/models_mesh_picking.c +++ b/examples/models/models_mesh_picking.c @@ -31,16 +31,16 @@ int main(void) camera.target = (Vector3){ 0.0f, 8.0f, 0.0f }; // Camera looking at point camera.up = (Vector3){ 0.0f, 1.6f, 0.0f }; // Camera up vector (rotation towards target) camera.fovy = 45.0f; // Camera field-of-view Y - camera.projection = CAMERA_PERSPECTIVE; // Camera mode type + camera.projection = CAMERA_PERSPECTIVE; // Camera mode type Ray ray = { 0 }; // Picking ray - Model tower = LoadModel("resources/models/turret.obj"); // Load OBJ model - Texture2D texture = LoadTexture("resources/models/turret_diffuse.png"); // Load model texture - tower.materials[0].maps[MATERIAL_MAP_DIFFUSE].texture = texture; // Set model diffuse texture + Model tower = LoadModel("resources/models/obj/turret.obj"); // Load OBJ model + Texture2D texture = LoadTexture("resources/models/obj/turret_diffuse.png"); // Load model texture + tower.materials[0].maps[MATERIAL_MAP_DIFFUSE].texture = texture; // Set model diffuse texture - Vector3 towerPos = { 0.0f, 0.0f, 0.0f }; // Set model position - BoundingBox towerBBox = GetMeshBoundingBox(tower.meshes[0]); // Get mesh bounding box + Vector3 towerPos = { 0.0f, 0.0f, 0.0f }; // Set model position + BoundingBox towerBBox = GetMeshBoundingBox(tower.meshes[0]); // Get mesh bounding box // Ground quad Vector3 g0 = (Vector3){ -50.0f, 0.0f, -50.0f }; |
