aboutsummaryrefslogtreecommitdiff
path: root/examples/models/models_obj_loading.c
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2017-07-21 17:17:37 +0200
committerraysan5 <raysan5@gmail.com>2017-07-21 17:17:37 +0200
commit9040526f175ac6e19551fa72e2dc25790be9f818 (patch)
tree891683ce3793d32a9d4d4e4ac84da68675023f87 /examples/models/models_obj_loading.c
parent38d9fcb08ef81cd5a3ab93df825eac7714d03e45 (diff)
downloadraylib-9040526f175ac6e19551fa72e2dc25790be9f818.tar.gz
raylib-9040526f175ac6e19551fa72e2dc25790be9f818.zip
Adapt to new materials system
Diffstat (limited to 'examples/models/models_obj_loading.c')
-rw-r--r--examples/models/models_obj_loading.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/models/models_obj_loading.c b/examples/models/models_obj_loading.c
index 50d42d2e..70f92168 100644
--- a/examples/models/models_obj_loading.c
+++ b/examples/models/models_obj_loading.c
@@ -25,7 +25,7 @@ int main()
Model dwarf = LoadModel("resources/model/dwarf.obj"); // Load OBJ model
Texture2D texture = LoadTexture("resources/model/dwarf_diffuse.png"); // Load model texture
- dwarf.material.texDiffuse = texture; // Set dwarf model diffuse texture
+ dwarf.material.maps[MAP_DIFFUSE].texture = texture; // Set map diffuse texture
Vector3 position = { 0.0f, 0.0f, 0.0f }; // Set model position
SetTargetFPS(60); // Set our game to run at 60 frames-per-second