DEV Community

Piler
Piler

Posted on

[Unity] Two texture transition shader

Target Effect:

Image description

  1. Create variables: two texture and origin(float)

Image description

  1. Create a binary mask Image description
  2. Create a reversed binary mask Image description
  3. Multiple the binary mask and texture, then add them together Image description
  4. Done! You can modify the origin to do transition!

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay