summaryrefslogtreecommitdiffhomepage
path: root/examples/src/models/models_obj_loading.c
diff options
context:
space:
mode:
authorRay <[email protected]>2017-10-20 00:17:24 +0200
committerRay <[email protected]>2017-10-20 00:17:24 +0200
commit48daec567f8d22e4492eb47b878d7ff86024f97a (patch)
tree14dfb6feec1e4a7a6c03e0a37825aa7703de57d3 /examples/src/models/models_obj_loading.c
parent1be9753752eaee413d584b4e9b1de383ba217ecf (diff)
downloadraylib.com-48daec567f8d22e4492eb47b878d7ff86024f97a.tar.gz
raylib.com-48daec567f8d22e4492eb47b878d7ff86024f97a.zip
Reviewed examples code to 1.8
Diffstat (limited to 'examples/src/models/models_obj_loading.c')
-rw-r--r--examples/src/models/models_obj_loading.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/src/models/models_obj_loading.c b/examples/src/models/models_obj_loading.c
index 50d42d2..70f9216 100644
--- a/examples/src/models/models_obj_loading.c
+++ b/examples/src/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