diff options
| author | Ray <[email protected]> | 2022-05-30 20:30:16 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2022-05-30 20:30:16 +0200 |
| commit | d0318aac4a7fada53bf3cf5be6d2128db7cff5c3 (patch) | |
| tree | 867d8f7e5a9e80f8686b90034323a3d1ffe01e36 /src/rmodels.c | |
| parent | 8294e04749a14522816ed816d2c86e482a86fccc (diff) | |
| download | raylib-d0318aac4a7fada53bf3cf5be6d2128db7cff5c3.tar.gz raylib-d0318aac4a7fada53bf3cf5be6d2128db7cff5c3.zip | |
REVIEWED: `DrawBillboardPro()` #2494
Diffstat (limited to 'src/rmodels.c')
| -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 d02b0473..ce93ee1c 100644 --- a/src/rmodels.c +++ b/src/rmodels.c @@ -3335,7 +3335,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.y, size.x*(float)source.height/source.width }; + Vector2 sizeRatio = { size.x*(float)source.height/source.width, size.y }; Matrix matView = MatrixLookAt(camera.position, camera.target, camera.up); |
