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
This should be in MyNewAndShinyTextureResource in order to be backwards compatible. But even then they will not add it because new stuff is too much to test (see #45).
I understand it. But I can resize my bitmap prior to pass it to BitmapTextureResource. But I can't change uv coords in Sprite3D, so I need to write MyNewAndShinySprite3D.
Moreover it is strange to see parameter resizeForGPU
if (resizeForGPU) { ...
Of course you need to resize it by default if dimensions are not power of two.
When we use Sprite3D we don't want to scale up the bitmapdata if it is not power of two. So, we need to have something like Image in starling.
I made changes (hardcode) to reach such behavior.
Here are some changes in BitmapTextureResource.as:
So, we copy data without resizing. source.copyPixels(data, data.rect, new Point(0, 0)); Then save scaleUV to set them in Sprite3D.as:
I don't know how to integrate it correct into the main code. So it would be great to see similar changes in the next releases.
Thanks.
The text was updated successfully, but these errors were encountered: