aboutsummaryrefslogtreecommitdiff
path: root/examples/shaders_standard_lighting.c
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2016-05-31 18:15:53 +0200
committerraysan5 <raysan5@gmail.com>2016-05-31 18:15:53 +0200
commit302ec438dd8a5483e4fcf81d4bd80ac7d09e6a61 (patch)
tree7094081f3536d7d16804bff90f5d2a002c11ce45 /examples/shaders_standard_lighting.c
parentcac2a66debd0f2d3ef8195940f8e2744d539d19a (diff)
downloadraylib-302ec438dd8a5483e4fcf81d4bd80ac7d09e6a61.tar.gz
raylib-302ec438dd8a5483e4fcf81d4bd80ac7d09e6a61.zip
Removed colTint, tint color is colDiffuse
Tint color could be applied to colDiffuse... but what's the best way? Replace it? Multiply by? A point to think about...
Diffstat (limited to 'examples/shaders_standard_lighting.c')
-rw-r--r--examples/shaders_standard_lighting.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/shaders_standard_lighting.c b/examples/shaders_standard_lighting.c
index 10416f7f..ccbe74ca 100644
--- a/examples/shaders_standard_lighting.c
+++ b/examples/shaders_standard_lighting.c
@@ -40,9 +40,9 @@ int main()
material.texDiffuse = LoadTexture("resources/model/dwarf_diffuse.png"); // Load model diffuse texture
material.texNormal = LoadTexture("resources/model/dwarf_normal.png"); // Load model normal texture
material.texSpecular = LoadTexture("resources/model/dwarf_specular.png"); // Load model specular texture
- material.colDiffuse = (Color){255, 255, 255, 255};
+ material.colDiffuse = WHITE;
material.colAmbient = (Color){0, 0, 10, 255};
- material.colSpecular = (Color){255, 255, 255, 255};
+ material.colSpecular = WHITE;
material.glossiness = 50.0f;
dwarf.material = material; // Apply material to model