Is there a way to apply an effect to everything behind the sprite? (tex2Dproj)



  • I'm looking to make a sprite that behaves like water that uses the distortion UV node to distort everything behind it. So far I can sample the screen as a texture and distort that, but is there a way I can distort and apply the texture underneath the sprite?



  • With Grabpass and Grabpass UV

    Grabpass will use the background as a texture, Grabpass UV will use the right UV from the background texture

    0_1523003495420_b962b34a-5071-44ff-a2a9-5ff2b1e97d7f-image.png

    0_1523003587173_005c5b61-13b8-4c30-97ee-36c7f3ca4bef-image.png

    make sure that the sorting layer is above all the other sprite.

    if you want the effect to be under the character, for example, simple use the right sorting layer

    0_1523003768770_3a0e7f4c-8c66-4a72-8b43-83730e55a0bd-image.png

    Hope it's help


 

Looks like your connection to Vetasoft Assets was lost, please wait while we try to reconnect.