Jump to content

Combine blend mode with alpha


Flomotion
 Share

Recommended Posts

Hello all,

I'm trying to combine a material in blend mode with an alpha channel. But it doesn't seem to be possible.(alpha overrides the alpha from bitmap)

http://www.babylonjs-playground.com/#ST2E8W

Perhaps using the shader builder could lead to a solution. But I don't really understand shaders and I can not find info about it.

I do think there is something in this playground. But it doesn't work anymore because the shaderbuilder.js can not be found.

http://www.babylonjs-playground.com/#E6OZX#58

 

Is there anyone who can help me in the right direction?

thanks!

Link to comment
Share on other sites

Thanks for your answers.

Deltakosh, I'm aware of the different modes. But maybe I just don't understand them. Because when I apply some of them I don't see any difference with not using a blend mode. But none of them help me combine the alpha from the image and applying the blend mode.

Gijs, I was nearly embarrased to see that you found a similar question from me from a while back. Unfortunately this seems to be a different issue. Because the alpha blendmode will disable/ override the opacity texture too.

And using the opacityTexture gives many unpredictable results in z-ordering.

I need both to be able to create a colored label with a print with alpha on it.The alpha defines the shape of the label.

Since white being 'printed' on a colored surface will show the colored surface I also need an alpha blend mode.

So I'll keep looking..

I'm affraid it will be shaders.

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