ShaderToy LiveCoding - The Drive Home - 1. Basic Setup
Channel:The Art of Code · Length:15:39 · Published:2017-11-06 · Views:27564
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
- Glitch Tokens - Computerphile · Computerphile · 19:28
- Shader Basics, Blending & Textures • Shaders for Game Devs [Part 1] · Freya Holmér · 3:53:10
- 8 Bit & '8 Bitish' Graphics-Outside the Box · GDC Festival of Gaming · 1:25:34
- The Beauty of Bézier Curves · Freya Holmér · 24:25
- The Continuity of Splines · Freya Holmér · 1:13:50
- elevated by Rgba & TBC | 4k intro (FullHD 1080p demoscene demo) · Demoscene High-Quality Videos (Annikras) · 3:36
- Painting a Character with Maths · Inigo Quilez · 24:46
- The Real Story Behind Wayland and X - Daniel Stone (linux.conf.au 2013) · Mladen Mijatov · 45:35
- A Deep Dive into Nanite Virtualized Geometry · SIGGRAPH Advances in Real-Time Rendering · 1:09:59
- Siggraph2019 Geometric Algebra · Bivector · 1:37:21
- The Art of Code - Dylan Beattie · NDC Conferences · 1:00:48
- Functional Composition - Chris Ford · ClojureTV · 39:21
- I painted a Landscape with Mathematics · Inigo Quilez · 42:00
- Elevated by RGBA and TBC · BUTTONTANG · 3:36
- Darius Kazemi, Tiny Subversions - XOXO Festival (2014) · XOXO Festival · 21:39
- Creating a Doom-style 3D engine in C · Bisqwit · 18:49