Skip to content
0:00 / 0:00

#unity#shaders#hlsl

Making a rainy window in Unity - Part 1

The Art of Code

60K subscribers • 19 videos on Hallway

YouTube
  • Recommended by 2 people: 1 in engineering communities and 1 on Stack Overflow and its sister sites.
  • May be out of date. Uploaded 7 years ago, in an area where tools change fast.

Intermediate. Assumes working knowledge.

75K views7 years ago2 recommendations

Graphics and audioGame developmentRenderingGame programmingCreative coding

How to code a realistic rain-on-window shader from scratch in Unity, focusing on generating the water drops.

Twitter: @The_ArtOfCode Facebook: facebook.com/groups/theartofcode/ Patreon: patreon.com/TheArtOfCode PayPal Donation: paypal.me/theartofcode I did an effect a little while ago that shows rain dripping down a window. I figured it could be good to use in a game perhaps but since it was made in ShaderToy, and ShaderToy is not used for game development, I figured I would do a better version of the original effect, in Unity! So, if you are making a game or any kind of interactive program in Unity, you can now add a nice 'Rainy Grey Sunday' effect to it ;) In this video we'll code a rain-on-window shader from scratch in Unity. This is part 1, in which we'll make the drops. ShaderToy Live Version: shadertoy.com/view/ltffzl Music: Buddha by Kontekst soundcloud.com/kontekstmusic Creative Commons — Attribution 3.0 Unported— CC BY 3.0 creativecommons.org/licenses/b... Music promoted by Audio Library youtu.be/b6jK2t3lcRs

Why it's here

2 people recommend this

What people say. Recommended as a great resource for learning shader debugging and visualization techniques.

u/CountFrolicin r/GraphicsProgramming • Recommends

Shader coding a rainy window in Unity - Part 1

Ian Macintoshon Stack Overflow • Recommends

On “How to debug a GLSL shader?”

You can try this: https://github.com/msqrt/shader-printf which is an implementation called appropriately "Simple printf functionality for GLSL." You might also want to try ShaderToy, and maybe watch a video like this one (link to this video) from "The Art of Code" YouTube channel where you can see some of the techniques that work well for debugging and visualising. I can strongly recommend his channel as he writes some really good stuff and he also has a knack for presenting complex ideas in novel, highly engaging and and easy to digest formats (His Mandelbrot video is a superb example of exactly that : link to this video) I hope nobody minds this late reply, but the question ranks high on Google searches for…