Supporting Multiple Lights - Custom Lighting Models - Episode 7 @BenCloward
Supporting Multiple Lights - Custom Lighting Models - Episode 7  @BenCloward
Uploaded February 2025 | Updated September 2026, 2 weeks ago
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:
bencloward.com/youtube/lights.txt

Here are two tutorials showing how to customize the lighting model in Unreal Engine:
dev.epicgames.com/community/learning/tutorials/2R5x/unreal-engine-new-shading-models-and-changing-the-gbuffer
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:
youtube.com/playlist?list=PL78XDi0TS4lGnGa7L2X4o3UV-XYZEKNwj

Here's last week's video on using light color and shadow:
youtu.be/R6nO6dUdO4Y

Shader Book Recommendations
bencloward.com/resources_books.shtml

------------------------------

Theme Music
Peace in the Circuitry - Glitch Hop
teknoaxe.com/Link_Code_3.php?q=1526

Background Music
Speo - The Little Things
youtube.com/watch?v=kvCYuyyLgC0

#UnrealEngine #shadergraph #Unity
Supporting Multiple Lights - Custom Lighting Models - Episode 7Vertex Displacement - Advanced Materials - Episode 35Intro To Procedural Shapes and Patterns - Episode 1Substrate Translucency - Unreal Substrate - Episode 4Triplanar Projection - Shader Graph Basics - Episode 28Metal Shader - Advanced Materials - Episode 7Fog and Light Shafts - Building Worlds In Unreal - Episode 13Triplanar Projection Improvements - Shader Graph Basics - Episode 29Adding Rocks With Hierarchical Generation - Procedural Content Generation (PCG) - Episode 9Even Faster Terrain - Terrain Shaders - Episode 6Ceiling, Floor, & Round Nodes - Shader Graph Basics - Episode 17Custom Lighting Models - Episode 1
Ben Cloward |

Supporting Multiple Lights - Custom Lighting Models - Episode 7

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER