GridVids
Sign in with YouTube

Supporting Multiple Lights - Custom Lighting Models - Episode 7

Ben Cloward Feb 27, 2025 16:00
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Don't Miss
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Mark watched
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Hide
Open in popup Open on YouTube
Share video

Share video

Copy the GridVids link or iframe code.

Video link
Iframe code
Iframe content

In today's shader tutorial, I show how to write the code required to support multiple light sources when creating a custom lighting model in Unity. Here's the code - so you don't have to type it all out: https://www.bencloward.com/youtube/lights.txt Here are two tutorials showing how to customize the lighting model in Unreal Engine: https://dev.epicgames.com/community/learning/tutorials/2R5x/unreal-engine-new-shading-models-and-changing-the-gbuffer https://dev.epicgames.com/community/learning/tutorials/ow0x/unreal-engine-custom-shading-models-directly-in-your-material-graphs Take a look at the playlist for the whole series: https://www.youtube.com/playlist?list=PL78XDi0TS4lGnGa7L2X4o3UV-XYZEKNwj Here's last week's video on using light color and shadow: https://youtu.be/R6nO6dUdO4Y Shader Book Recommendations https://www.bencloward.com/resources_books.shtml ------------------------------ Theme Music Peace in the Circuitry - Glitch Hop http://teknoaxe.com/Link_Code_3.php?q=1526 Background Music Speo - The Little Things https://www.youtube.com/watch?v=kvCYuyyLgC0 #UnrealEngine #shadergraph #Unity
Education
#UE4 #UE5 #Unreal #Unreal Engine #Unity #shader #material #material editor #game development #real-time #tutorial #training #graphics #3d #GPU #tech art #computer graphics #fundamentals #shader graph #point light #spot light additional lights #multiple lights #custom lighting model