阶段:
1,TCS: Tessellation Control Shader,细分控制材质
2,PG:Primitive Generator,图元生成器
3,TES:Tessellation Evalution Shader,细分执行材质
4,CP:Control Points,The TCS works on a group of vertices called Control Points (CP),TCS工作在一组控制点上,CP点得移动会影响 被控制的表面。
TCS阶段是输入一个patch 输出一个 patch,TCS还要计算一个重要的功能: Tessllation levels:TL,Tessellation level of detai - how many triangles to generate for the patch(在一个patch上生成多少个三角形)
如果rasterized triangle覆盖了100个像素,可以决定TL的值是3,如果覆盖了101-500 可以为7。
另外也可以根据摄像机距离来决定TL值。
TCS完成之后,PG就是执行细分。PG阶段并不是真正的细分,你可能连访问他的权限都没有。但是TL & subdives 来定义了一个新的概念:Domain,domain是一个2D 0-1区间square,或者3d的barycentric coordinates
REF:
http://ogldev.atspace.co.uk/www/tutorial30/tutorial30.html
原文:https://www.cnblogs.com/gearslogy/p/13141035.html