Jump to content

PIXI 5 beginTextureFill vs PIXI 4 Texture Mesh


soylomass
 Share

Recommended Posts

Hi,

In my game I'm using Pixi 4 using this method (https://www.html5gamedevs.com/topic/39049-drawing-huge-objects/?tab=comments#comment-223277) to create textured polygons. I do it by dividing the polygons in triangles, then creating meshes with DRAW_MODES.TRIANGLES. It works on both WebGL and Canvas.

In Pixi 5 we can just create a Graphics object and draw the textured polygon with beginTextureFill and drawPolygon.

What is the most performant way? Does Pixi 5 method work in Canvas too?

Thanks in advance.


 
Link to comment
Share on other sites

7 minutes ago, ivan.popelyshev said:

no, we didnt add fallback yet

I was 1 minute away from doing the migration to PIXI v5 until this ? But maybe I should still do it, and use both methods depending on the user's device.

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...