2D Raycaster in TouchDesigner: lights and shadows

Download project file here – https://www.patreon.com/posts/42201574
Extra examples for Patreon supporters – https://www.patreon.com/posts/42201692

This tutorials shows texture based raycaster coded in GLSL with a several variations. Aside from the effect itself, it could be used as an exercise in GLSL for beginner/intermediate level, because it can be modified in different ways to achieve different results.

Contents:
00:00 – Intro
01:40 – Feedback example
04:08 – Lights from texture and detailed explanation of the algorithm
15:19 – Coding light ramps in GLSL (2D SDF for circle)
21:28 – Multiple lights example
26:10 – Cone light example

About The Author

You might be interested in