This commit is contained in:
Confideo-IOM
2026-09-29 12:52:37 +01:00
parent 7a1eaa3654
commit def7bbffee
46 changed files with 1492 additions and 561 deletions
@@ -1,7 +1,7 @@
// tessellation evaluation shader
#version 450 core
layout (quads, equal_spacing, ccw) in;
layout (quads, fractional_even_spacing, ccw) in;
layout(std430, binding = 1) readonly buffer positions_buffer
{
@@ -67,6 +67,8 @@ void main()
vec4 p10 = gl_in[2].gl_Position;
vec4 p11 = gl_in[3].gl_Position;
// compute patch surface normal
vec4 uVec = p01 - p00;
vec4 vVec = p10 - p00;
@@ -90,4 +92,7 @@ void main()
mat4 view = ubo_per_frame.view;
mat4 proj = ubo_per_frame.proj;
gl_Position = proj * view * model * p;
}