Update rmodels.c
This commit is contained in:
parent
3c9d3d9bef
commit
5bbc2a2cf2
|
|
@ -3795,8 +3795,14 @@ void DrawModelEx(Model model, Vector3 position, Vector3 rotationAxis, float rota
|
|||
|
||||
Matrix matTransform = MatrixMultiply(MatrixMultiply(matScale, matRotation), matTranslation);
|
||||
|
||||
DrawModelProd(model, matTransform, tint)
|
||||
}
|
||||
|
||||
// Draw a model with pro parameters
|
||||
void DrawModelPro(Model model, Matrix transform, Color tint)
|
||||
{
|
||||
// Combine model transformation matrix (model.transform) with matrix generated by function parameters (matTransform)
|
||||
model.transform = MatrixMultiply(model.transform, matTransform);
|
||||
model.transform = MatrixMultiply(model.transform, transform);
|
||||
|
||||
for (int i = 0; i < model.meshCount; i++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user