Comments on: (GLSL) Simple Morph Target Animation https://www.geeks3d.com/20140205/glsl-simple-morph-target-animation-opengl-glslhacker-demo/ Graphics Cards and GPUs News, Graphics Programming, Home of FurMark Thu, 14 Aug 2014 18:44:36 +0000 hourly 1 https://wordpress.org/?v=6.7.1 By: pi https://www.geeks3d.com/20140205/glsl-simple-morph-target-animation-opengl-glslhacker-demo/#comment-40566 Wed, 21 May 2014 20:52:42 +0000 http://www.geeks3d.com/?p=8747#comment-40566 Line 18 of slerp:

float theta = acos(dotp * 3.14159/180.0);

Why convert dotp, aka cos(theta) from DEG -> RAD?

But cos(theta) isn’t in DEG. It isn’t an angle!

Isn’t the bracketing wrong?

float DEG2RAD = 3.14159/180.0;
float theta_rad = acos(dotp) * DEG2RAD;

And even then I doubt acos() returns degrees.

]]>