ShaderToy LiveCoding - The Drive Home - 1. Basic Setup

Channel:The Art of Code · Length:15:39 · Published:2017-11-06 · Views:27564

Watch on YouTube

Summary

The first part of a ShaderToy live-coding series that lays the groundwork for The Drive Home, a rainy night-traffic shader. It covers basic setup and builds toward rain and bokeh effects.

Why HN recommends it

Recommended in shader and rain-simulation threads as an engaging tutorial from a well-liked graphics-programming channel.

The accompanying video tutorial[2] is super interesting too — HN, 2020

Computer graphics & rendering · Creative coding & generative art

Subtitles (excerpt)

hey you welcome to the art of code my name is Warren time and what you see behind me here is a shader that I did a while ago and I was planning on making a tutorial for that but I got too lazy up until now so what we're gonna do in the next few videos I'm gonna explain to you how to make this shader so let's get started with the basics and pressed a new button okay so gone so we're gonna build the shader from scratch so I'm gonna go a little bit faster in the beginning and not explain so much because these things I have explained all in previous videos so if there's anything that you don't understand then be sure to check out my previous videos so I'm gonna take the X component of the resolution here and divide that or multiply by high resolution dot X divided by resolution Y that is to get rid of that is to get rid of the squash did you get if you don't have a square viewport so that's the first thing that I'm going to define a camera position and I'm going to do that at let's say 0 comma a little bit above the ground so they were upon to coma zero and now I'm gonna define a look at point that is another walk at look that is slightly in front of my camera so it's exactly the same but it's in front so in the in the Z direction

On Hacker News

I've always enjoyed watching The Art of Code[1], Freya[2] also has a good number of videos on it. But that is just vertex shaders for things like Shadertoys. There is much more to computer graphics or GPGPU than this though, Im still learning about that myself X). [1] [VIDEO] [2] [LINK] — FjordWarden, 2025-04
Not sure if it is the original but the source where I first saw this rain effect was on ShaderToy - The Drive Home by Martijn Steinrucken aka BigWings[1] The accompanying video tutorial[2] is super interesting too as well as the HN discussion at the time [3]. [1] [LINK] [2] Link to first part: [VIDEO] [3] [LINK] — weinzierl, 2020-07
See also Martijn Steinrucken aka BigWings's The Drive Home: ShaderToy: [LINK] [WebGL] Video: [LINK] / Making of: [VIDEO] — rgovostes, 2022-09
Is there any description or attribution for the shader? Are the visuals an improved version of Martijn Steinrucken's "Drive Home" shader [1], or a different approach? This one does seem more dynamic with more detail, it looks pretty good, and I like how the big drops take out the small spray. [1] shader: [LINK] video: [LINK] tutorial: [VIDEO] — dahart, 2018-11

Related videos