Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hello

I want to blend two textures with a custom

mask. I have a mask, for example a black & white mask (also a texture) and

two other textures. At the white pixels of the mask I want to see texture one and at the black pixels of the mask I want the texture 2. I think this is the formula:

out = texture1 * mask + texture2 * (1 - mask)

I tryed with the Lerp operation but it does not work.

 

Thank you for help

wima

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

×
×
  • Create New...