diff options
| Commit | ad491e40f524e9c267970081fb4afbbee9fd696d (patch) | |
|---|---|---|
| Author | 2022-12-09 21:52:53 +0200 | |
| Committer | 2022-12-09 21:52:53 +0200 | |
| Files | 36a2952789444a608bf2d918a8ccb00373d14ad4 | |
| uni-projects-ad491e40f524e9c267970081fb4afbbee9fd696d.tar uni-projects-ad491e40f524e9c267970081fb4afbbee9fd696d.tar.gz uni-projects-ad491e40f524e9c267970081fb4afbbee9fd696d.zip | ||
| Parent | 96fd548ff23753073bcb3c8d430ce78efda8f0b6 (diff) | |
[OKG/HWK2] Fixed blend percent calculation
1 files changed, 1 insertions, 1 deletions
| -rw-r--r-- | Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html | 2 |
diff --git a/Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html b/Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html index 7320900..ccd9936 100644 --- a/Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html +++ b/Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html @@ -226,7 +226,7 @@ for (var i = executeHooks.length; i > 0; i--) {
var mo = executeHooks.shift();
- var blendPer = (mo.start === mo.end) ? 1 : (t - mo.start) / mo.end;
+ var blendPer = (mo.start === mo.end) ? 1 : (t - mo.start) / (mo.end - mo.start);
if (!mo.iscamera) {
if (!mo.A) mo.A = fixPostureY(mo.mannequin.posture);
|
