aboutsummaryrefslogtreecommitdiff
path: root/src/models.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 /src/models.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 'src/models.c')
-rw-r--r--src/models.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/models.c b/src/models.c
index 8c5ed914..962a6470 100644
--- a/src/models.c
+++ b/src/models.c
@@ -779,8 +779,7 @@ Material LoadDefaultMaterial(void)
material.texDiffuse = GetDefaultTexture(); // White texture (1x1 pixel)
//material.texNormal; // NOTE: By default, not set
//material.texSpecular; // NOTE: By default, not set
-
- material.colTint = WHITE; // Tint color
+
material.colDiffuse = WHITE; // Diffuse color
material.colAmbient = WHITE; // Ambient color
material.colSpecular = WHITE; // Specular color
@@ -1298,7 +1297,7 @@ void DrawModelEx(Model model, Vector3 position, Vector3 rotationAxis, float rota
//Matrix matModel = MatrixMultiply(model.transform, matTransform); // Transform to world-space coordinates
model.transform = MatrixMultiply(MatrixMultiply(matScale, matRotation), matTranslation);
- model.material.colTint = tint;
+ model.material.colDiffuse = tint; // TODO: Multiply tint color by diffuse color?
rlglDrawMesh(model.mesh, model.material, model.transform);
}