In this episode "Ray marching for dummies" Godot tutorial series, I have explained how we can properly shade our ray marched shapes based on lights. I have also covered exterior and interior distances for ray marching to we can shade our complex objects properly.
For best experience set the video playback speed to 1.25x!
Buy Cosmic roads on steam!
Previous episode!
Shader file!
Shader-Lib addon!
Shader-Lib docs!
Consider supporting the channel!
Chapters!
00:00 Intro
00:38 Lighting theory
02:47 Calculate normals
05:47 Converting normals to view space
11:53 Interior and exterior distances
16:50 Outro
Cheers!
#GodotEngine #shaders #RayMarching #tutorial #howto #gamedev