Commit 6c61cd90 by Kai Westerkamp

alles committed...

parent 5dbf9e49
...@@ -29,6 +29,7 @@ void main() ...@@ -29,6 +29,7 @@ void main()
float w3 = w2*w; float w3 = w2*w;
float w4= w2*w2; float w4= w2*w2;
//müsset alles / 12 sien , ist udnen beim entgültigen Punkte iengerechnet
float a0 = u4+2*u3*v; float a0 = u4+2*u3*v;
float a1 = u4+2*u3*w; float a1 = u4+2*u3*w;
float a2 = u4+2*u3*w+6*u3*v+6*u2*v*w+12*u2*v2+6*u*v2*w+6*u*v3+2*v3*w+v4; float a2 = u4+2*u3*w+6*u3*v+6*u2*v*w+12*u2*v2+6*u*v2*w+6*u*v3+2*v3*w+v4;
...@@ -57,7 +58,7 @@ void main() ...@@ -57,7 +58,7 @@ void main()
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;
vec4 pos = vec4((newPos),1); vec4 pos = vec4(newPos/12,1);
tePatchDistance = gl_TessCoord.xyz; tePatchDistance = gl_TessCoord.xyz;
......
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