Рет қаралды 25,482
✔️ Works in 2020.1 ➕ 2020.2 ➕ 2020.3 🩹 Fixes for 2020.2 and .3:
► When you create a shader graph, set the material setting to "Unlit"
► The gear menu on Custom Function nodes is now in the graph inspector
► Editing properties must be done in the graph inspector instead of the blackboard
► In Lighting.hlsl, change the line "if SHADERGRAPH_PREVIEW" to "ifdef SHADERGRAPH_PREVIEW"
► [December 29th 2020] Unity changed how to calculate shadows for additional lights, requiring a new GetAdditionalLightForToon function that CalculateAdditionalLights must call. See the Lighting.hlsl (2020.2) link below.
Toon Shaders, also called Cel Shaders, create a cartoon-like style with segmented shading. In this video, I'll show you how to improve my previous toon shader by adding spot light shadows, better light color blending, and more powerful control over light intensity.
👋 Subscribe for weekly game development videos!
kzfaq.info...
👑 Join my Patreon for extra influence over topics, early access to videos, and downloadable project files!
► / nedmakesgames
🔗 Check out my website for a searchable list of tutorials!
► nedmakesgames.github.io
🔴 Twitch ► / nedmakesgames
🐦 Twitter ► / nedmakesgames
🎮 Discord ► discordapp.com/invite/ubxSVBK
📸 Instagram ► / nedmakesgames
👽 Reddit ► / nedmakesgames
🎶 TikTok ► / nedmakesgames
☕ Ko-fi ► ko-fi.com/nedmakesgames
🎬 Previous videos
► Part 1: • Toon Shader in Unity U...
📚 Reference scripts
► Lighting.hlsl (2020.1): raw.githubusercontent.com/Ned...
► Lighting.hlsl (2020.2): gist.github.com/NedMakesGames...
⏲️ Timestamps:
0:00 Intro
0:37 Spot light shadows
1:57 Crisp light colors
2:55 Light intensity
4:28 Wrap up and credits
🎖️ Credits and references:
• Pumpkin model: Renderbunny, www.turbosquid.com/3d-models/...
• Music: Eric Skiff, freemusicarchive.org/music/Er...
#GameDev #IndieDev #Unity