5
\$\begingroup\$

enter image description here

Since the concept was difficult to explain in words for someone who's not quite familiar with shader, I described it in pictures.

I'm currently using Unity and it seems Shaderlab is the best choice to accomplish this.

To shader masters, this seems like quite a simple trick, but as beginner, I've been struggling to find right keywords and tutorials to accomplish this.

I wish someone could explain the concept behind this shader trick.

Thank you in advance.

\$\endgroup\$
  • 2
    \$\begingroup\$ I think you can skip some of the textures, like "Black", which looks like an uniform color, or the "Character (dark)" which isn't needed since you can get this information from the characters alpha-channel. \$\endgroup\$ – bummzack Nov 27 '13 at 8:08
1
\$\begingroup\$

The technique is called masking. Alpha is used as a mask to calculate how much of the original pixel's color gets in to the final image.

\$\endgroup\$

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.