aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2019-03-29 20:54:45 +0100
committerRay <raysan5@gmail.com>2019-03-29 20:54:45 +0100
commit2217c04ecf426cc2011c864fa788354ffa1de307 (patch)
tree9b7687c6e8358cccca2c703017c80c81e3c95f40 /examples
parentbe6d237b9ebbe245de4384c17b84e75dab0f4981 (diff)
downloadraylib-2217c04ecf426cc2011c864fa788354ffa1de307.tar.gz
raylib-2217c04ecf426cc2011c864fa788354ffa1de307.zip
Update standard_lighting.c
Diffstat (limited to 'examples')
-rw-r--r--examples/others/standard_lighting.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/others/standard_lighting.c b/examples/others/standard_lighting.c
index 7034aa35..c37ae151 100644
--- a/examples/others/standard_lighting.c
+++ b/examples/others/standard_lighting.c
@@ -113,7 +113,7 @@ int main()
material.maps[MAP_DIFFUSE].color = WHITE;
material.maps[MAP_SPECULAR].color = WHITE;
- model.material = material; // Apply material to model
+ model.materials[0] = material; // Apply material to model
Light spotLight = CreateLight(LIGHT_SPOT, (Vector3){3.0f, 5.0f, 2.0f}, (Color){255, 255, 255, 255});
spotLight->target = (Vector3){0.0f, 0.0f, 0.0f};