Adding Shadow Casting to Grass Baked with Compute Shaders ✔️ 2020.3 | Unity URP Game Dev Tutorial @NedMakesGames
Adding Shadow Casting to Grass Baked with Compute Shaders ✔️ 2020.3 | Unity URP Game Dev Tutorial  @NedMakesGames
Uploaded March 2021 | Updated September 2026, 3 weeks ago
✔️ Works in 2020.2 ➕ 2020.3

Grass is one of those things that's deceptively difficult to implement. I've taken a stab at it in this series of videos, showing how to generate grass blades using a compute shader, and animate it using the vertex function of a graphics shader. In this video, I modify previous scripts to add shadow casting to the grass blades, as well as show a trick to lighten shadows without global illumination.

👋 Subscribe for weekly game development videos!
► youtube.com/c/nedmakesgames?sub_confirmation=1

👑 Join my Patreon for extra influence over topics, early access to videos, downloadable project files, and more!
► patreon.com/nedmakesgames

🔗 Check out my website for a searchable list of tutorials!
► nedmakesgames.github.io

🔴 Twitch ► twitch.tv/nedmakesgames
🐦 Twitter ► twitter.com/nedmakesgames
🎮 Discord ► discordapp.com/invite/ubxSVBK
📸 Instagram ► instagram.com/nedmakesgames
👽 Reddit ► reddit.com/u/nedmakesgames
🎶 TikTok ► tiktok.com/@nedmakesgames
☕ Ko-fi ► ko-fi.com/nedmakesgames

🎬 Previous videos
► Generating meshes with compute shaders: youtu.be/AiWCPiGr10o
► Blade grass: youtu.be/6SFTcDNqwaA
► Layered grass: youtu.be/UehGAVMCa7w

💬 Video transcript
► docs.google.com/document/d/1ENXtJmMdlFFeKvfLYxk6NFKMWho2jE9YVwDeHaCa0M4/edit?usp=sharing

📜 Required scripts
► gist.github.com/NedMakesGames/83fba48a06d8b22bda79121d8401a00a

📚 Reference scripts
► Shadow caster pass: gist.github.com/NedMakesGames/8db536be81e757fffb3ad745a2a14630
► Double sided blades: gist.github.com/NedMakesGames/436718af90b3d3483b672ee80ae7b280
► Final: gist.github.com/NedMakesGames/3b7ca2b7d69e0ea6e44e859066997802

⏲️ Timestamps:
0:00 Intro
0:56 Project setup
1:08 Shadow caster pass
2:50 Double sided blades
7:58 Lightening shadows
9:01 Wrap up and credits

🎖️ Credits and references:
• freepik: Wrinkled paper texture - freepik.com/premium-vector/wrinkled-paper-texture_711440.htm
• James "Nihilore" Opie: music "Glimmer" - youtube.com/watch?v=yAozyPbCT18

#GameDev #IndieDev #Unity
Adding Shadow Casting to Grass Baked with Compute Shaders ✔️ 2020.3 | Unity URP Game Dev TutorialWalking Through Creating a Full-Screen Transition Effect in Unity! [Tutorial Tuesday 3]Shader Graph and C# Interaction! Set Properties from Scripts! ✔️ 2020.3 | Unity Game Dev TutorialMapObjects for the Future! Tactical Lizard Tamer, Unity Game Dev Log [Part 135]Basics of Partial Derivative Shader Funcs in Unity! DDX, DDY, FWidth ✔️ 2021.1 | Game Dev TutorialTerrain Texture Layering! Tactical Lizard Tamer, Unity Game Dev Log [Part 146]Mouse Pointer in Screen and World Space! Mouse Picking in Unity! ✔️ 2021.1 | Game Dev TutorialWind Animated Grass In Unity URP Shader Graph Using Meshes! ✔️ 2020.3 | Game Dev TutorialPeicemeal Terrain Processing! Tactical Lizard Tamer, Unity Game Dev Log [Part 132]Blocks Are In! Tactical Lizard Tamer, Unity Game Dev Log [Part 169]Clients Are Obsolete! Tactical Lizard Tamer, Unity Game Dev Log [Part 182]The Graphics Pipeline and You | Writing Unity URP Code Shaders Tutorial [1/9] ✔️ 2021.3
Ned Makes Games |

Adding Shadow Casting to Grass Baked with Compute Shaders ✔️ 2020.3 | Unity URP Game Dev Tutorial

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER