Godot 4! Shading The Raymarched Shapes Based on Lights!

Опубликовано: 26 Март 2026
на канале: Digvijaysinh Gohil
1,396
56

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!
https://store.steampowered.com/app/25...

Previous episode!
   • Godot 4 Raymarching! Render Basic Shapes!  

Shader file!
  / 107120204  

Shader-Lib addon!
https://godotengine.org/asset-library...

Shader-Lib docs!
https://github.com/DigvijaysinhGohil/...

Consider supporting the channel!
https://github.com/sponsors/Digvijays...
  / digvijaysinhg  

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