Jump to content

Z-value problem when using alpha with SPS


jodo
 Share

Recommended Posts

I have some problems with the z-Values of the faces of a cube when using the "hasVertexAlpha" on the mesh of the SPS. The bottom shows even if alpha is set to 1.0. and the other faces dont seem to be correct too.
I created a material for the sps mesh and set backface culling to false. 

I recreated it in the playground : http://www.babylonjs-playground.com/#1WP9KY#1.

Is this a bug? or am I just doing something wrong?

Link to comment
Share on other sites

Yep,

this is the real explanation !

the sps mesh transparency will be ever right compared to any other mesh in the scene, but the transparency between its own faces (so its particles) isn't sorted along z

Please have a read here, everything is detailed : http://doc.babylonjs.com/tutorials/Transparency_and_How_Meshes_Are_Rendered

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