Author Topic: Xray effect with shader  (Read 1260 times)

gaurav.maniar

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 9
    • View Profile
Xray effect with shader
« on: August 27, 2014, 05:09:24 AM »
i want X-ray effect on sprite,

sprite1(background image)
sprite2(foreground image)
(both are with same size)

sprite3(another foreground image, size smaller than sprite2)

so when sprite3 is hovered on sprite2, i want to make that much part of sprite3 visible.

i tried to do it with following shader, but it didn't work,

http://unitycoder.com/blog/2012/02/22/x-ray-cutout-shader-with-mouse/

any idea, how to do this??

-Thanks