Toon Shader in Unity Using a Shader Graph with Custom Lighting! ✔️ 2020.3 | Game Dev Tutorial

  Рет қаралды 85,730

Ned Makes Games

Ned Makes Games

Күн бұрын

✔️ Works in 2020.1 ➕ 2020.2 ➕ 2020.3 🩹 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"
► Add a normalize node after view direction to fix a bug in certain Unity versions.
Toon shaders, also called cel shaders, create a cartoon-like style with segmented shading. In this video, I'll show you how to create these shaders in Unity using Shader Graph. Features include: diffuse and specular lighting, color textures, shading ramp textures, shadows, and multiple light sources. The custom lighting techniques can be used in a variety of shaders down the line!
👋 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
📚 Reference scripts
► Main light: raw.githubusercontent.com/Ned...
► Main light with shadows: raw.githubusercontent.com/Ned...
► Main and additional lights: raw.githubusercontent.com/Ned...
► Final version for 2020.2 and onward: gist.github.com/NedMakesGames...
✨Follow up videos
► Spot light shadows: • Toon Shader Graph with...
⏲️ Timestamps:
0:00 Intro
1:00 Project setup
2:10 Simple (diffuse) lighting
5:39 Shading ramp textures
7:54 Color textures
8:57 Shadows
12:10 Specular lighting
14:59 Additional light sources
19:31 Wrap up and credits
🎖️ Credits and references:
• www.cgtrader.com/free-3d-mode...
• www.turbosquid.com/3d-models/...
• www.turbosquid.com/3d-models/...
• freesound.org/people/Akacie/s...
• blogs.unity3d.com/2019/07/31/...
• alexanderameye.github.io/simp...
• / 1240636243060408321
• Music by leerosevere.bandcamp.com/
#GameDev #IndieDev #Unity

Пікірлер: 522
Unity Toon shader in Shader Graph with multiple lights!
15:34
터키아이스크림🇹🇷🍦Turkish ice cream #funny #shorts
00:26
Byungari 병아리언니
Рет қаралды 25 МЛН
UFC Vegas 93 : Алмабаев VS Джонсон
02:01
Setanta Sports UFC
Рет қаралды 221 М.
Cel Shading - Devlog 3
11:09
Robin Seibold
Рет қаралды 43 М.
Unlocking The Power Of Unity's Scriptable Render Pipeline
21:05
Game Dev Guide
Рет қаралды 191 М.
The Strange Graphics Of LETHAL COMPANY
15:59
Acerola
Рет қаралды 725 М.
Making a Zelda-style Cel Shading Effect in Unity Shader Graph
13:19
Toon Shader Paint - Shader Graph Basics - Episode 38
23:07
Ben Cloward
Рет қаралды 17 М.
What does a Game Engine actually do?
16:45
Ellie Rasmussen
Рет қаралды 140 М.