✔️ Works in 2020.1 ➕ 2020.2 ➕ 2020.3
🩹 Fixes:
► Make sure your source mesh has read/write enabled in it's asset importer inspector.
Geometry shaders are special shaders that can add, remove, and modify mesh triangles from the GPU, allowing you to create efficient deformation effects and procedurally constructed models. You can use them for grass, fur, wireframes, particles and more. These shaders, unfortunately, cannot be written in a shader graph, so I'll walk you through writing one in code!
👋 Subscribe for weekly game development videos!
[ Ссылка ]
👑 Join my Patreon for extra influence over topics, early access to videos, and downloadable project files!
► [ Ссылка ]
🔗 Check out my website for a searchable list of tutorials!
► [ Ссылка ]
🔴 Twitch ► [ Ссылка ]
🐦 Twitter ► [ Ссылка ]
🎮 Discord ► [ Ссылка ]
📸 Instagram ► [ Ссылка ]
👽 Reddit ► [ Ссылка ]
🎶 TikTok ► [ Ссылка ]
☕ Ko-fi ► [ Ссылка ]
✨Follow up videos
► Geometry shader grass: [ Ссылка ]
► Intro to compute shaders: [ Ссылка ]
📜 Required scripts
► NMGGeometryHelpers.hlsl: [ Ссылка ]
📚 Reference scripts
► PyramidFaces.shader: [ Ссылка ]
► PyramidFaces.hlsl: [ Ссылка ]
⏲️ Timestamps:
0:00 Intro
0:38 Project setup
0:51 Vertex-fragment shader
5:36 Geometry shader
8:12 Shadow caster pass
8:59 Wrap up and credits
🎖️ Credits and references:
• Shahriar Shahrabi: volumetric grass - [ Ссылка ]
• CJT-Jackton: URP geometry shader examples - [ Ссылка ]
• freepik: crumpled paper texture - [ Ссылка ]
• Jasper Flick: flat and wireframe shading - [ Ссылка ]
• Rolemusic: music "The Black Kitty" - [ Ссылка ]
#GameDev #IndieDev #Unity
Ещё видео!