diff options
| author | Ray <[email protected]> | 2022-06-29 21:56:19 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2022-06-29 21:56:19 +0200 |
| commit | 9be186624c4c4755cd5721b8eeef5bbd48e0e64b (patch) | |
| tree | 5c06fa32ef8491b41e581be7dabf4221d0eec25e /src | |
| parent | 61e691d94fee0d2700ac3e8ed8783cf9c7516ab0 (diff) | |
| download | raylib-9be186624c4c4755cd5721b8eeef5bbd48e0e64b.tar.gz raylib-9be186624c4c4755cd5721b8eeef5bbd48e0e64b.zip | |
REVIEWED: `DrawBillboard*()`
Diffstat (limited to 'src')
| -rw-r--r-- | src/rmodels.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rmodels.c b/src/rmodels.c index d3614cb5..a088d444 100644 --- a/src/rmodels.c +++ b/src/rmodels.c @@ -3332,7 +3332,7 @@ void DrawBillboardRec(Camera camera, Texture2D texture, Rectangle source, Vector void DrawBillboardPro(Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector3 up, Vector2 size, Vector2 origin, float rotation, Color tint) { // NOTE: Billboard size will maintain source rectangle aspect ratio, size will represent billboard width - Vector2 sizeRatio = { size.x*(float)source.height/source.width, size.y }; + Vector2 sizeRatio = { size.x*(float)source.width/source.height, size.y }; Matrix matView = MatrixLookAt(camera.position, camera.target, camera.up); |
