4ian Posted June 26, 2013 Share Posted June 26, 2013 Hi,Do you know if there is a way to use the tiling sprite object with a texture having a size being not a power of 2 ( Even if it is a bit less efficient ) ? Quote Link to comment Share on other sites More sharing options...
4ian Posted July 8, 2013 Author Share Posted July 8, 2013 So I am really forced to use textures with a power-of-2 size ? Quote Link to comment Share on other sites More sharing options...
xerver Posted July 8, 2013 Share Posted July 8, 2013 Yes, you have to use a power-of-two texture for TilingSprites (when using WebGL). This is because a texture wrap of `gl.REPEAT` is used to create the tiling effect, which only supports power-of-two textures. Other textures can be non-power-of-two and the library will choose `gl.CLAMP_TO_EDGE` wrapping for them, but that does not work for TilingSprites (since they need `gl.REPEAT`). Quote Link to comment Share on other sites More sharing options...
4ian Posted July 8, 2013 Author Share Posted July 8, 2013 Ok, thanks for the answer 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.