New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ebiten: impossible to get a specified size at DrawRectShader
when no source image is specified
#2166
Comments
EDIT: I'm rereading our discussion https://discord.com/channels/842049801528016967/842056438632939570/990716664297422869 |
imageSrcRegionOnTexture should work even without any images. Updates #2166
I fixed |
The fix failed on the Steam bot. |
Though it is possible to fix |
#1431 is a blocker |
If we allow various source image sizes (#1870), any values would not make sense... |
DrawRectShader is a little odd API
This is because DrawRectShader is a shader version of DrawImage. |
texCoord can be used as source position only when the unit is pixels. Closes #2166
If you don't use any source images, the value of texCoord doesn't make sense and then you cannot get the width and the height in DrawRectShader.
Reported by @sedyh
The text was updated successfully, but these errors were encountered: