- Home /
Unity inbuilt distorsion shader?
Hey there, i'm asking myself if unity got an inbuilt distorsion shader for particles like the heat of fire or a "magical portal". Someone who knows that?
Greets
Comment
Best Answer
Answer by tanoshimi · Feb 21, 2017 at 08:08 AM
There's not an inbuilt heat distortion effect that I know of, but it's not too hard to create one. You'd use a GrabPass texture to get the underlying image drawn to the screen, and then use some sort of scrolling noise to distort the UVs used when sampling that texture.
Never tried writing a shader before but i think it's time to get started now. Thank you for the reply!
Well, start from the example code on the page I linked and then just apply some Sin distortion to the i.grabPos variables.