Custom Lighting in Unity URP Shader Graph! Ready for Toony Lights! ✔️ 2021.1 | Game Dev Tutorial

Опубликовано: 28 Март 2026
на канале: Ned Makes Games
65,402
1.2k

✔️ Tested in 2020.3 & 2021.1

Do you have a material that doesn't look quite right in Unity's URP lit shader graph? Or would you like to experiment with stylized art styles with the convenience of the shader graph? In this tutorial, I show how to implement custom lighting, allowing you to solve both those problems. Afterwards, you could extend the graphs I show here to make a toon shader or handle difficult materials, like plant foliage, hair, skin, or fabric.

📚 If you prefer reading, check out the written version of this tutorial here:
►   / creating-custom-lighting-in-unitys-shader-...  

🌞 Interactive lighting math explorer:
► https://nedmakesgames.itch.io/lightin...

👋 Subscribe for weekly game development videos!
► https://www.youtube.com/c/nedmakesgam...

👑 Join my Patreon to watch videos early, download all project files, vote on future topics, and more! Thank you so much!
►   / nedmakesgames  

🔗 Visit my website for a searchable list of tutorials!
► https://nedmakesgames.github.io

2️⃣ 2nd Channel ►    / nedmakesgames2  
🔴 Twitch ►   / nedmakesgames  
🐦 Twitter ►   / nedmakesgames  
🎮 Discord ► https://discordapp.com/invite/ubxSVBK
📸 Instagram ►   / nedmakesgames  
👽 Reddit ►   / nedmakesgames  
🎶 TikTok ►   / nedmakesgames  
☕ Ko-fi ► https://ko-fi.com/nedmakesgames

💻 Script reference:
► https://gist.github.com/NedMakesGames...

⏲️ Timestamps:
0:00 Intro and Scope
1:43 Project setup
4:48 Diffuse lighting
7:49 Specular lighting
10:22 Shadows
13:46 Additional lights
15:51 Global illumination & shadow masks
23:13 Fog
24:10 Upcoming changes
24:45 Wrap up and credits

🎖️ Credits, references and further reading:
• Lee Rosevere: Music for Podcasts - https://leerosevere.bandcamp.com/
• Cyanilux: URP_ShaderGraphCustomLighting - https://github.com/Cyanilux/URP_Shade...
• Ida Faber: Lowpoly Shiba Inu Dog - https://www.artstation.com/marketplac...
• XfrogPlants: Curry Leaf Tree Free 3D model - https://www.cgtrader.com/free-3d-mode...
• Lennart Demes: Grass 001 - https://ambientcg.com/view?id=Grass001
• Baptiste Manteau: Bark old ginko - https://substance3d.adobe.com/communi...
• Render Knight: Fantasy Skybox FREE - https://assetstore.unity.com/packages...

#GameDev #IndieDev #Unity