Jump to content

Additive Blending


sanostol

Recommended Posts

I want to have do shader that adds in transparent parts, for example if many grids with this shader are on top of each other their color gets added together. right now the color is mixed, but never gets brighter than the original surface color. what I want to achive if i look through 10 grids with this shader, that has a color of {1,0,0} and a opacity of 0.2 their color is added and the color should be something like {2,0,0}

Martin

Link to comment
Share on other sites

If you don't reflect the object's opacity in it's alpha and leave the alpha at 0, the resulting combination is additive. ie. the object's transparency is something less than 1 but greater than 0, and the alpha is 0.

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.

×
×
  • Create New...