Jump to content

PIXI.mesh.Mesh with alpha problem


nickero
 Share

Recommended Posts

Hi.

I try to fade-out animation with mesh object. My Problem is : mesh object doesn't look equally transparent when its alpha is between (0,1). It looks like attached .png file.

Whats wrong with me? I checked vertices, uvs and index data but it seems correct as far as i can understand. I changed vertices index clockwise to counterclockwise and situation is changed, but can not get equally transparent.

here is codepen:

 

alpha.png

Link to comment
Share on other sites

  • 2 weeks later...

sry I get right result by adding PIXI.mesh.Mesh.DRAW_MODES.TRIANGLES to the constructor.

but I do not know why TRIANGLE_MESH is wrong and the difference of them.
What is the rendering rule of DRAW_MODES.TRIANGLES ? Is it like gl.TRIANGLE_STRIP ?

 

 

 

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