Supporting Multiple Lights - Custom Lighting Models - Episode 7
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