✔️ 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!
► https://www.youtube.com/c/nedmakesgam...
👑 Join my Patreon for extra influence over topics, early access to videos, downloadable project files, and more!
► / nedmakesgames
🔗 Check out my website for a searchable list of tutorials!
► https://nedmakesgames.github.io
🔴 Twitch ► / nedmakesgames
🐦 Twitter ► / nedmakesgames
🎮 Discord ► https://discordapp.com/invite/ubxSVBK
📸 Instagram ► / nedmakesgames
👽 Reddit ► / nedmakesgames
🎶 TikTok ► / nedmakesgames
☕ Ko-fi ► https://ko-fi.com/nedmakesgames
🎬 Previous videos
► Generating meshes with compute shaders: • Generate a Mesh Asset Using Compute Shader...
► Blade grass: • Blade Grass! Generate and Bake a Field Mes...
► Layered grass: • Stylized Grass in Unity URP! Compute Shade...
💬 Video transcript
► https://docs.google.com/document/d/1E...
📜 Required scripts
► https://gist.github.com/NedMakesGames...
📚 Reference scripts
► Shadow caster pass: https://gist.github.com/NedMakesGames...
► Double sided blades: https://gist.github.com/NedMakesGames...
► Final: https://gist.github.com/NedMakesGames...
⏲️ 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 - https://www.freepik.com/premium-vecto...
• James "Nihilore" Opie: music "Glimmer" - • Nihilore - Glimmer
#GameDev #IndieDev #Unity