Update standard_lighting.c
This commit is contained in:
parent
be6d237b9e
commit
2217c04ecf
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ int main()
|
||||||
material.maps[MAP_DIFFUSE].color = WHITE;
|
material.maps[MAP_DIFFUSE].color = WHITE;
|
||||||
material.maps[MAP_SPECULAR].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});
|
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};
|
spotLight->target = (Vector3){0.0f, 0.0f, 0.0f};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue