Jump to content

How to combine multiple textures in pixijs


winterNebs
 Share

Recommended Posts

Hi, I am writing a tile texture generator in which I need to stich 4 textures together, with multiple different combinations of textures.

Instead of making the sprites I want to pregenerate them by creating the combined textures together instead of having multiple sprites.

i saw that PIXI.RenderTexture was recommended, but reading the documentation doesn't seem to help, and I can't seem to get a working example. 

Included I created a fiddle, if someone can provide me with a working version, that is probably enough to get me going. 

 

https://www.pixiplayground.com/#/edit/joTwLMK7DcA0uek3o3MPe

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...