Commit 540c3c44 by Philipp Adolf

Revert "Disable tesselation shader"

This reverts commit 0b31a5fa.
parent 9fe1af47
...@@ -14,7 +14,6 @@ void main() ...@@ -14,7 +14,6 @@ void main()
tcPosition[gl_InvocationID] = vPosition[gl_InvocationID]; tcPosition[gl_InvocationID] = vPosition[gl_InvocationID];
float tesselation = subdiv-depth; float tesselation = subdiv-depth;
tesselation = 0;
gl_TessLevelOuter[0] = exp2(tesselation); gl_TessLevelOuter[0] = exp2(tesselation);
gl_TessLevelOuter[1] = exp2(tesselation); gl_TessLevelOuter[1] = exp2(tesselation);
......
...@@ -54,7 +54,7 @@ void main() ...@@ -54,7 +54,7 @@ void main()
vec3 p11 = tcPosition[11]; vec3 p11 = tcPosition[11];
vec3 newPos= a0*p0+a1*p1+a2*p2+a3*p3+a4*p4+a5*p5+a6*p6+a7*p7+a8*p8+a9*p9+a10*p10+a11*p11; vec3 newPos= a0*p0+a1*p1+a2*p2+a3*p3+a4*p4+a5*p5+a6*p6+a7*p7+a8*p8+a9*p9+a10*p10+a11*p11;
if (subdiv == 0 || true) { if (subdiv == 0) {
newPos = u * p3 + v * p6 + w * p7; newPos = u * p3 + v * p6 + w * p7;
} }
vec4 pos = vec4(newPos, 1.0f); vec4 pos = vec4(newPos, 1.0f);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment