From 9040526f175ac6e19551fa72e2dc25790be9f818 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Fri, 21 Jul 2017 17:17:37 +0200 Subject: Adapt to new materials system --- examples/models/models_obj_loading.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/models/models_obj_loading.c') 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 -- cgit v1.2.3