summaryrefslogtreecommitdiffhomepage
path: root/examples/models/models_cubicmap.c
diff options
context:
space:
mode:
authorRay <[email protected]>2019-03-29 20:22:50 +0100
committerRay <[email protected]>2019-03-29 20:22:50 +0100
commitbe6d237b9ebbe245de4384c17b84e75dab0f4981 (patch)
treedf451509352e1c197c28dc94e9211468a1124540 /examples/models/models_cubicmap.c
parenta197f40bb4bd5a644ad54bef756d7f435977df9d (diff)
downloadraylib-be6d237b9ebbe245de4384c17b84e75dab0f4981.tar.gz
raylib-be6d237b9ebbe245de4384c17b84e75dab0f4981.zip
Review models examples
Diffstat (limited to 'examples/models/models_cubicmap.c')
-rw-r--r--examples/models/models_cubicmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/models/models_cubicmap.c b/examples/models/models_cubicmap.c
index c8d62c46..ac24188e 100644
--- a/examples/models/models_cubicmap.c
+++ b/examples/models/models_cubicmap.c
@@ -31,7 +31,7 @@ int main()
// NOTE: By default each cube is mapped to one part of texture atlas
Texture2D texture = LoadTexture("resources/cubicmap_atlas.png"); // Load map texture
- model.material.maps[MAP_DIFFUSE].texture = texture; // Set map diffuse texture
+ model.materials[0].maps[MAP_DIFFUSE].texture = texture; // Set map diffuse texture
Vector3 mapPosition = { -16.0f, 0.0f, -8.0f }; // Set model position