0
\$\begingroup\$

I want to achieve something like this using blending enter image description here

I thought that it might be a simple additive shader but after using Blend One One or Blendop Add I get something like this enter image description here

\$\endgroup\$
0
\$\begingroup\$

This isn't something wrong with your blend mode. It's an optical illusion called Mach Bands.

When there's a sudden change in brightness, the change in perceived brightness is exaggerated in the immediate vicinity, making it look like there's a dark line or shadow in the image even if it's not really there.

Graph illustrating how perceived brightness gets an extra peak or trough around areas of sudden change

We can fix this by smoothing out our gradients so they don't have these sharp discontinuities.

Both the top and bottom orbs in the image below use the same additive blending calculation:

Example with and without mach banding effect.

The orbs at the top show the same dark ridges as in your example, but the ones at the bottom don't. The reason is I reshaped the gradient slightly in Photoshop, to give it a little "ease out" at the dark end. Like this...

Curves adjustment in Photoshop

That's enough to smooth out the sharp change in brightness where the gradient bottoms-out to black, so we don't perceive a sharp ridge/dark trough there.

\$\endgroup\$
0
\$\begingroup\$

I used Blend SrcColor One and it works fine for me

\$\endgroup\$
  • \$\begingroup\$ Don't forget to come back and mark this answer as the accepted one when you can. \$\endgroup\$ – Vaillancourt Apr 11 '18 at 13:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.