jcs Posted January 17, 2014 Share Posted January 17, 2014 WebGLRenderer.updateTexture() has been removed, which means that we can no longer add textures to the "texturesToUpdate" array and have them updated.This breaks things which use canvas objects for sprites' textures and change them dynamically (Phaser's TileMap system, for instance). Is there a work-around or another way to accomplish this? I'd rather not monkey-patch in the old updateTexture() code... (I understand there may be better ways than drawing to a canvas, since that loses the speed of WebGL rendering - but in some cases it is much more expedient to use a canvas) thnx Quote Link to comment Share on other sites More sharing options...
jcs Posted January 17, 2014 Author Share Posted January 17, 2014 On further grep-ing of the source I see I can use PIXI.updateWebGLTexture(). Is this the preferred method of accomplishing this in 1.4? Quote Link to comment Share on other sites More sharing options...
Mat Groves Posted January 19, 2014 Share Posted January 19, 2014 Hi there! PIXI.updateWebGLTexture() should do the trick! Let me know how it goes for you thanks! Quote Link to comment Share on other sites More sharing options...
jcs Posted January 19, 2014 Author Share Posted January 19, 2014 working great, thanks! Quote Link to comment Share on other sites More sharing options...
Mat Groves Posted January 19, 2014 Share Posted January 19, 2014 working great, thanks! woop woop! 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.