Uploaded December 2020 | Updated September 2026, 3 weeks ago
✔️ Works in 2020.1 ➕ 2020.2 ➕ 2020.3
🩹 Fixes:
► Make sure your source mesh has read/write enabled in it's asset importer inspector.
Grass is a tough thing to render for any game. I've shown two ways to do it, and here's a third approach! This uses a compute shader to extrude a blade of grass from each triangle on a source mesh. The blades dynamically simplify when far from the camera, helping you to create large fields, and wave with the wind too.
👋 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, and downloadable project files!
► 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
► Compute shader basics: youtu.be/EB5HiqDl7VE
► Cross-mesh grass in shader graph: youtu.be/JDpt9xYaUYc
► Geometry shader layered grass: youtu.be/YghAbgCN8XA
► Compute shader layered grass: youtu.be/c1JThTu6-Ok
✨Follow up videos
► Trample effects on cross mesh grass: youtu.be/AmO7k-Lr0XM
► Improved blade grass: youtu.be/6SFTcDNqwaA
📜 Required scripts
► NMGGrassBladeComputeHelpers.hlsl: gist.github.com/NedMakesGames/2531d460febb0406b812726e1b328e0d
► NMGGrassBladeGraphicsHelpers.hlsl: gist.github.com/NedMakesGames/53e477ce920ace08413dbbedc1f06c87
📚 Reference scripts
► Base: gist.github.com/NedMakesGames/3e67fabe49e2e3363a657ef8a6a09838
► Randomization: gist.github.com/NedMakesGames/229dc9ed7ccaebfff4f6ac192c5125ef
► Segments: gist.github.com/NedMakesGames/b380a98f405cbf0fbbf8ffcec276c488
► Wind: gist.github.com/NedMakesGames/cac5fea97b775aab3ba3c069d660f4ab
► Instantiation: gist.github.com/NedMakesGames/b4e4ec90b67ee3b92ef1b561475c2b58
► LOD: gist.github.com/NedMakesGames/92a4cafe345a330f9a94069ffcec7dc8
⏲️ Timestamps:
0:00 Intro
0:44 Project setup
1:30 Base scripts
10:34 Randomization
12:48 Segments
15:54 Wind
18:26 Instantiation
19:17 LOD
20:58 Wrap up and credits
🎖️ Credits and references:
• Roystan: Grass Shader - roystan.net/articles/grass-shader.html
• CJT-Jackson: URP Geometry Shader Example - github.com/CJT-Jackton/URP-Geometry-Shader-Example
• Keijiro Takahashi: AngleAxis3x3 - gist.github.com/keijiro/ee439d5e7388f3aafc5296005c8c3f33
• Ronja Böhringer: White Noise - ronja-tutorials.com/2018/09/02/white-noise.html
• Siddharth Hegde: Messing with Tangent Space - gamasutra.com/view/feature/129939/messing_with_tangent_space.php?print=1
• freepik: Wrinkled paper texture - freepik.com/premium-vector/wrinkled-paper-texture_711440.htm
• benblo: TransformBounds - answers.unity.com/questions/361275/cant-convert-bounds-from-world-coordinates-to-loca.html
• DuncanF - Lockless marching cubes with DrawProceduralIndirect - gist.github.com/DuncanF/353509dd397ea5f292fa52d1b9b5133d
• Kevin Hartnell: music "The 13th Nocturne" - freemusicarchive.org/music/Kevin_Hartnell/CC_BY-SA_40/Kevin_Hartnell_-_CC_BY-SA_40_-_15_The_13th_Nocturne
#GameDev #IndieDev #Unity
✔️ Works in 2020.1 ➕ 2020.2 ➕ 2020.3
🩹 Fixes:
► Make sure your source mesh has read/write enabled in it's asset importer inspector.
Grass is a tough thing to render for any game. I've shown two ways to do it, and here's a third approach! This uses a compute shader to extrude a blade of grass from each triangle on a source mesh. The blades dynamically simplify when far from the camera, helping you to create large fields, and wave with the wind too.
👋 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, and downloadable project files!
► 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
► Compute shader basics: youtu.be/EB5HiqDl7VE
► Cross-mesh grass in shader graph: youtu.be/JDpt9xYaUYc
► Geometry shader layered grass: youtu.be/YghAbgCN8XA
► Compute shader layered grass: youtu.be/c1JThTu6-Ok
✨Follow up videos
► Trample effects on cross mesh grass: youtu.be/AmO7k-Lr0XM
► Improved blade grass: youtu.be/6SFTcDNqwaA
📜 Required scripts
► NMGGrassBladeComputeHelpers.hlsl: gist.github.com/NedMakesGames/2531d460febb0406b812726e1b328e0d
► NMGGrassBladeGraphicsHelpers.hlsl: gist.github.com/NedMakesGames/53e477ce920ace08413dbbedc1f06c87
📚 Reference scripts
► Base: gist.github.com/NedMakesGames/3e67fabe49e2e3363a657ef8a6a09838
► Randomization: gist.github.com/NedMakesGames/229dc9ed7ccaebfff4f6ac192c5125ef
► Segments: gist.github.com/NedMakesGames/b380a98f405cbf0fbbf8ffcec276c488
► Wind: gist.github.com/NedMakesGames/cac5fea97b775aab3ba3c069d660f4ab
► Instantiation: gist.github.com/NedMakesGames/b4e4ec90b67ee3b92ef1b561475c2b58
► LOD: gist.github.com/NedMakesGames/92a4cafe345a330f9a94069ffcec7dc8
⏲️ Timestamps:
0:00 Intro
0:44 Project setup
1:30 Base scripts
10:34 Randomization
12:48 Segments
15:54 Wind
18:26 Instantiation
19:17 LOD
20:58 Wrap up and credits
🎖️ Credits and references:
• Roystan: Grass Shader - roystan.net/articles/grass-shader.html
• CJT-Jackson: URP Geometry Shader Example - github.com/CJT-Jackton/URP-Geometry-Shader-Example
• Keijiro Takahashi: AngleAxis3x3 - gist.github.com/keijiro/ee439d5e7388f3aafc5296005c8c3f33
• Ronja Böhringer: White Noise - ronja-tutorials.com/2018/09/02/white-noise.html
• Siddharth Hegde: Messing with Tangent Space - gamasutra.com/view/feature/129939/messing_with_tangent_space.php?print=1
• freepik: Wrinkled paper texture - freepik.com/premium-vector/wrinkled-paper-texture_711440.htm
• benblo: TransformBounds - answers.unity.com/questions/361275/cant-convert-bounds-from-world-coordinates-to-loca.html
• DuncanF - Lockless marching cubes with DrawProceduralIndirect - gist.github.com/DuncanF/353509dd397ea5f292fa52d1b9b5133d
• Kevin Hartnell: music "The 13th Nocturne" - freemusicarchive.org/music/Kevin_Hartnell/CC_BY-SA_40/Kevin_Hartnell_-_CC_BY-SA_40_-_15_The_13th_Nocturne
#GameDev #IndieDev #Unity

![No Kicking Yourself! Tactical Lizard Tamer, Unity Game Dev Log [Part 186]
Im making a game in Unity! It will be a mixture of Pokemon teambuilding on a Fire Emblem / Final Fantasy Tactics style map. Players will be able to mod in their own monsters and battle online!
Twitch ► https://www.twitch.tv/nedmakesgames
Twitter ► https://twitter.com/nedmakesgames
Blog ► https://nedmakesgames.tumblr.com
Discord ► https://discordapp.com/invite/ubxSVBK No Kicking Yourself! Tactical Lizard Tamer, Unity Game Dev Log [Part 186]](https://i.ytimg.com/vi/EKGeX8ebo-M/mqdefault.jpg)
![Boulders and Art Styles! Tactical Lizard Tamer, Unity Game Dev Log [Part 142]
Im making a game in Unity! It will be a mixture of Pokemon teambuilding on a Fire Emblem / Final Fantasy Tactics style-map. Players will be able to mod in their own monsters and battle online!
Twitch ► https://www.twitch.tv/nedmakesgames
Twitter ► https://twitter.com/nedmakesgames
Blog ► https://nedmakesgames.tumblr.com
Discord ► https://discordapp.com/invite/ubxSVBK Boulders and Art Styles! Tactical Lizard Tamer, Unity Game Dev Log [Part 142]](https://i.ytimg.com/vi/EV7MlWg4pr8/mqdefault.jpg)
![Transparent and Crystal Clear | Writing Unity URP Code Shaders Tutorial [3/9] #shorts
⭐ Watch the full tutorial here: https://youtu.be/4zw6Vq5CzLY
📚 Or read it here: https://nedmakesgames.medium.com/f6ccd6686507
Have you ever wondered how lighting and shadows work in Unity? Or, do you want to write your own shaders for the Universal Render Pipeline, but without Shader Graph? Either because you need some special feature or just prefer writing code, this tutorial has you covered.
In fact, this is the third part in a series about writing HLSL shaders for URP. In this video, I aim to demystify transparency! Ill showcase how to work with blended and cut out transparency. Along the way, well learn about custom inspectors, render queues, culling, shader features, and double sided lighting.
👋 Subscribe for weekly game development videos!
► https://www.youtube.com/c/nedmakesgames?sub_confirmation=1
👑 Join my Patreon to watch videos early, download all project files, vote on future topics, and more! Thank you so much!
► https://patreon.com/nedmakesgames
🔗 Visit my website for a searchable list of tutorials!
► https://nedmakesgames.github.io
2️⃣ 2nd Channel ► https://www.youtube.com/nedmakesgames2
🔴 Twitch ► https://www.twitch.tv/nedmakesgames
🐦 Twitter ► https://twitter.com/nedmakesgames
🎮 Discord ► https://discordapp.com/invite/ubxSVBK
📸 Instagram ► https://instagram.com/nedmakesgames
👽 Reddit ► https://reddit.com/u/nedmakesgames
🎶 TikTok ► https://www.tiktok.com/@nedmakesgames
☕ Ko-fi ► https://ko-fi.com/nedmakesgames
🎖️ Credits, references and further reading:
• Unity Technologies: Shader Calibration Scene - https://assetstore.unity.com/packages/templates/tutorials/shader-calibration-scene-25422
• tonyflanagan: Thailand Girl — Animated - https://sketchfab.com/3d-models/thailand-girl-animated-a41f779fe45b4a04bdbf212e49b7f6b5
• Aleksei Vlasov ⚡ CRWDE: Phonograph - https://sketchfab.com/3d-models/phonograph-1503329e69034a0fbb360504a1c4fba9
• gugusheep: VR Showroom Gallery for product placement - https://sketchfab.com/3d-models/vr-showroom-gallery-for-product-placement-d8f967fb44ea46cb9b62e720c6485ac0
• Helindu: The ultimate glass pack (cups and bottles) - https://sketchfab.com/3d-models/the-ultimate-glass-pack-cups-and-bottles-1ea37815fb0145e49487386d6924b341
• Leandro Nicolas: Snow Globe - https://sketchfab.com/3d-models/snow-globe-58a0f7e834c14413bb1a7e4262051180
• Andriy Shekh: Pine tree - https://sketchfab.com/3d-models/pine-tree-e52769d653cd4e52a4acff3041961e65
• Sergej Majboroda: Studio Small 09 - https://polyhaven.com/a/studio_small_09
Music provided by Epidemic Sound
#GameDev #IndieDev #Unity Transparent and Crystal Clear | Writing Unity URP Code Shaders Tutorial [3/9] #shorts](https://i.ytimg.com/vi/EwraS2-w9x4/mqdefault.jpg)
![Rim Lights and Cookies! Tactical Lizard Tamer, Unity Game Dev Log [Part 126]
Im making a game in Unity! It will be a mixture of Pokemon teambuilding on a Fire Emblem / Final Fantasy Tactics style-map. Players will be able to mod in their own monsters and battle online!
Twitch ► https://www.twitch.tv/nedmakesgames
Twitter ► https://twitter.com/nedmakesgames
Blog ► https://nedmakesgames.tumblr.com
Discord ► https://discordapp.com/invite/ubxSVBK Rim Lights and Cookies! Tactical Lizard Tamer, Unity Game Dev Log [Part 126]](https://i.ytimg.com/vi/F0yLUfJ1WVU/mqdefault.jpg)
![Smoothing Margins! Tactical Lizard Tamer, Unity Game Dev Log [Part 130A]
Im making a game in Unity! It will be a mixture of Pokemon teambuilding on a Fire Emblem / Final Fantasy Tactics style-map. Players will be able to mod in their own monsters and battle online!
Twitch ► https://www.twitch.tv/nedmakesgames
Twitter ► https://twitter.com/nedmakesgames
Blog ► https://nedmakesgames.tumblr.com
Discord ► https://discordapp.com/invite/ubxSVBK Smoothing Margins! Tactical Lizard Tamer, Unity Game Dev Log [Part 130A]](https://i.ytimg.com/vi/F34jdRLuCT4/mqdefault.jpg)
![Cel Shading with Shadows! Tactical Lizard Tamer, Unity Game Dev Log [Part 127]
Im making a game in Unity! It will be a mixture of Pokemon teambuilding on a Fire Emblem / Final Fantasy Tactics style-map. Players will be able to mod in their own monsters and battle online!
Twitch ► https://www.twitch.tv/nedmakesgames
Twitter ► https://twitter.com/nedmakesgames
Blog ► https://nedmakesgames.tumblr.com
Discord ► https://discordapp.com/invite/ubxSVBK Cel Shading with Shadows! Tactical Lizard Tamer, Unity Game Dev Log [Part 127]](https://i.ytimg.com/vi/FOWGqvhbHH8/mqdefault.jpg)
![Deferred Toon Shader! Tactical Lizard Tamer, Unity Game Dev Log [Part 122]
Im making a game in Unity! It will be a mixture of Pokemon teambuilding on a Fire Emblem / Final Fantasy Tactics style-map. Players will be able to mod in their own monsters and battle online!
Twitch ► https://www.twitch.tv/nedmakesgames
Twitter ► https://twitter.com/nedmakesgames
Blog ► https://nedmakesgames.tumblr.com
Discord ► https://discordapp.com/invite/ubxSVBK Deferred Toon Shader! Tactical Lizard Tamer, Unity Game Dev Log [Part 122]](https://i.ytimg.com/vi/FiW9wzfRVJo/mqdefault.jpg)

![Setting Animator Parameters! Tactical Lizard Tamer, Unity Game Dev Log [Part 108]
Im making a game in Unity! It will be a mixture of Pokemon teambuilding on a Fire Emblem / Final Fantasy Tactics style-map. Players will be able to mod in their own monsters and battle online!
Twitch ► https://www.twitch.tv/nedmakesgames
Twitter ► https://twitter.com/nedmakesgames
Blog ► https://nedmakesgames.tumblr.com
Discord ► https://discordapp.com/invite/ubxSVBK Setting Animator Parameters! Tactical Lizard Tamer, Unity Game Dev Log [Part 108]](https://i.ytimg.com/vi/GtrnsXvR0p8/mqdefault.jpg)
