JeanSwamp
Member
Hello,
I am trying to make some underwater effect in a sidescrolling game. Applying a fullscreen shader to create an underwater effect is pretty easy, but when you have in the same screen both water and terrain, this might get tricky.
Basically I need to apply the shader to everything that the water collision sprite (I use object collision and not tile collisions) covers within the room, so it does apply the distorsion shader to all the backgrounds and objects that are within the water.
Anyone experienced with this kind of stuff could throw in some light?
Thanks
I am trying to make some underwater effect in a sidescrolling game. Applying a fullscreen shader to create an underwater effect is pretty easy, but when you have in the same screen both water and terrain, this might get tricky.
Basically I need to apply the shader to everything that the water collision sprite (I use object collision and not tile collisions) covers within the room, so it does apply the distorsion shader to all the backgrounds and objects that are within the water.
Anyone experienced with this kind of stuff could throw in some light?
Thanks