r/Unity3D • u/Vic-Boss • 19h ago
Show-Off Windshield raindrops and wiper shader I made for fun
Hello there
You really liked my wheel shader last time so I figured I'd share my new venture, i wanted to try and make an effect you'd see in sim games where the raindrops not only follow gravity they change when the car speeds up and of course obscure your vision and you have to use the wipers.
So how this works, it's just a refraction shader with layers of a tiling normal map with randomized offset. When the "car" increases it blends to different layers that are rotated and offset towards the edge. Next I guess I could start blurring the glass
In the video I made the glass be tinted red-ish so it's a little more easier to see. Haven't really decided if I'd make all these in a game but I do have a working simcade controller I did over the summer, we will see