Alain Posted December 12, 2019 Share Posted December 12, 2019 (edited) I need to update a texture that is taken from a 2D canvas, every time I change the size of the graphic window this texture must be updated. this is my pen https://codepen.io/AlainBarrios/pen/KKwzLVd?editors=0010 Edited December 12, 2019 by Alain ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted December 12, 2019 Share Posted December 12, 2019 don't create new canvas, change old one and call "sprite.texture.update()" Alain 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.