aboutsummaryrefslogtreecommitdiff
path: root/redist
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2018-03-11 00:10:38 -0500
committercnlohr <lohr85@gmail.com>2018-03-11 00:10:38 -0500
commitc3f6a9a94575035b4226fc646989d561efe5c3f4 (patch)
tree38c66b591e25ff2a6a088698ef9682d98d080a04 /redist
parenta2ba45f43ae02b1e39b1816fe9c1c70c54a7f046 (diff)
downloadlibsurvive-c3f6a9a94575035b4226fc646989d561efe5c3f4.tar.gz
libsurvive-c3f6a9a94575035b4226fc646989d561efe5c3f4.tar.bz2
update with spinning view
Diffstat (limited to 'redist')
-rw-r--r--redist/linmath.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/redist/linmath.c b/redist/linmath.c
index 4240ed6..3cbe2cc 100644
--- a/redist/linmath.c
+++ b/redist/linmath.c
@@ -491,6 +491,7 @@ void quatrotatevector( FLT * vec3out, const FLT * quat, const FLT * vec3in )
vquat[3] = vec3in[2];
//XXX WARNING: This code is probably SLOW. See this: https://github.com/axlecrusher/hgengine3/blob/master/Mercury3/basic_light1_v.glsl
+ //See: http://www.geeks3d.com/20141201/how-to-rotate-a-vertex-by-a-quaternion-in-glsl/
quatrotateabout( tquat, quat, vquat );
quatgetconjugate( qrecp, quat );