filmov
tv
Mastering Tessellation Shaders in Unity! Easy LoD, Curved Triangles, Height Maps | Game Dev Tutorial
Показать описание
✔️ Tutorial tested in Unity URP 2020.3, 2021.3
Hi! Tessellation shaders are advanced shaders which can subdivide triangles in a mesh, creating new vertices. You can move these around for a variety of cool effects! This tutorial aims to give you a deep understanding of tessellation shaders in Unity by first explaining how to write your own and then showcasing several algorithms which use them. Some effects include advance culling, dynamic level of detail, curved triangles, smoothed silhouettes, height map rendering, and procedural meshes.
📚 If you prefer reading, check out the written version of this tutorial here:
👋 Subscribe for weekly game development videos!
👑 Join my Patreon to watch videos early, download all project files, vote on future topics, and more! Thank you so much!
🔗 Visit my website for a searchable list of tutorials!
💻 Script reference:
⏲️ Timestamps:
0:00 Intro
0:46 Tutorial scope
2:10 What is tessellation?
3:32 Anatomy of a tessellation shader
7:15 The hull function
9:03 The patch constant function
10:11 The domain function
11:05 Tessellation factors
12:57 Partitioning modes
13:59 Optimizing with culling
14:29 Frustum culling
15:37 Winding/backface culling
17:01 Culling tolerance
17:31 Dynamic tessellation factors
19:09 Screen space factors
19:56 Camera depth factors
20:45 Mesh data factors
21:39 Deformed patches factors
22:20 Curved triangles and smoothed silhouettes
23:10 Phong tessellation
24:52 Refining models for curved triangles
25:46 PN triangles
28:47 Quadratic normal interpolation
31:18 Height map displacement
32:45 Normals from height maps
34:24 Procedural height maps
36:08 Wrap up and credits
🎖️ Credits, references and further reading:
#GameDev #IndieDev #Unity
Hi! Tessellation shaders are advanced shaders which can subdivide triangles in a mesh, creating new vertices. You can move these around for a variety of cool effects! This tutorial aims to give you a deep understanding of tessellation shaders in Unity by first explaining how to write your own and then showcasing several algorithms which use them. Some effects include advance culling, dynamic level of detail, curved triangles, smoothed silhouettes, height map rendering, and procedural meshes.
📚 If you prefer reading, check out the written version of this tutorial here:
👋 Subscribe for weekly game development videos!
👑 Join my Patreon to watch videos early, download all project files, vote on future topics, and more! Thank you so much!
🔗 Visit my website for a searchable list of tutorials!
💻 Script reference:
⏲️ Timestamps:
0:00 Intro
0:46 Tutorial scope
2:10 What is tessellation?
3:32 Anatomy of a tessellation shader
7:15 The hull function
9:03 The patch constant function
10:11 The domain function
11:05 Tessellation factors
12:57 Partitioning modes
13:59 Optimizing with culling
14:29 Frustum culling
15:37 Winding/backface culling
17:01 Culling tolerance
17:31 Dynamic tessellation factors
19:09 Screen space factors
19:56 Camera depth factors
20:45 Mesh data factors
21:39 Deformed patches factors
22:20 Curved triangles and smoothed silhouettes
23:10 Phong tessellation
24:52 Refining models for curved triangles
25:46 PN triangles
28:47 Quadratic normal interpolation
31:18 Height map displacement
32:45 Normals from height maps
34:24 Procedural height maps
36:08 Wrap up and credits
🎖️ Credits, references and further reading:
#GameDev #IndieDev #Unity
Комментарии