You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I found that when using DrawBillboardPro to render, if the height/width of the source is negative, the width/height of the size also needs to be changed to negative, otherwise the billboard will not be rendered. This may be detrimental to the API's usability and consistency. For example, when using DrawBillboardPro to render RenderTexture and flipping it upside down, both the height of source and the width of size need to be changed to negative, which is inconsistent with the behavior of DrawTexturePro. I believe the expected behavior should be able to use the source and size parameters independently to control the flipping of the billboard without interfering with each other. Any help you can provide would be greatly appreciated!
Code Example
Simply change the source variable in the billboard example of raylib to:
The text was updated successfully, but these errors were encountered:
bohonghuang
changed the title
[rmodel] Strange behavior when rendering flipped billboards using DrawBillboardPro
[rmodels] Strange behavior when rendering flipped billboards using DrawBillboardProJul 25, 2023
Issue description
Hello! I found that when using
DrawBillboardPro
to render, if the height/width of thesource
is negative, the width/height of thesize
also needs to be changed to negative, otherwise the billboard will not be rendered. This may be detrimental to the API's usability and consistency. For example, when usingDrawBillboardPro
to renderRenderTexture
and flipping it upside down, both the height ofsource
and the width ofsize
need to be changed to negative, which is inconsistent with the behavior ofDrawTexturePro
. I believe the expected behavior should be able to use thesource
andsize
parameters independently to control the flipping of the billboard without interfering with each other. Any help you can provide would be greatly appreciated!Code Example
Simply change the
source
variable in the billboard example ofraylib
to:The text was updated successfully, but these errors were encountered: