fix re-shadow after index rotations, carry angle through synth points

This commit is contained in:
Stewart Allen 2022-11-08 14:46:40 -05:00
commit 3452297dc6
5 changed files with 26 additions and 21 deletions

View file

@ -667,7 +667,6 @@ class Widget {
// if indexed, return points rotated about X and then offset
let track = this.track;
if (translate && track.indexed) {
let delta = track.delta;
pos = pos.clone()
.applyMatrix4( new THREE.Matrix4().makeRotationX(-track.indexRad) );
}
@ -688,6 +687,9 @@ class Widget {
} else if (translate) {
pos = pos.slice();
}
// used by CAM.shadowAt()
this.cache.geo = pos;
this.cache.shadow = undefined;
return pos;
}