[skottie] Fix camera z-rotation
Flip z consistently. TBR=reed Change-Id: I910d6e2ae4cc21992b5b5c3acb5c4074b1e4204e Reviewed-on: https://skia-review.googlesource.com/c/skia/+/210382 Reviewed-by: Florin Malita <fmalita@chromium.org> Commit-Queue: Florin Malita <fmalita@chromium.org>
This commit is contained in:
parent
a085a41b9d
commit
7cd5ea0a63
@ -134,11 +134,11 @@ SkMatrix44 CameraAdapter::totalMatrix() const {
|
||||
|
||||
{
|
||||
SkMatrix44 rot;
|
||||
rot.setRotateDegreesAbout(1, 0, 0, this->getRotation().fX);
|
||||
rot.setRotateDegreesAbout(1, 0, 0, this->getRotation().fX);
|
||||
cam_t.postConcat(rot);
|
||||
rot.setRotateDegreesAbout(0, 1, 0, this->getRotation().fY);
|
||||
rot.setRotateDegreesAbout(0, 1, 0, this->getRotation().fY);
|
||||
cam_t.postConcat(rot);
|
||||
rot.setRotateDegreesAbout(0, 0, 1, this->getRotation().fZ);
|
||||
rot.setRotateDegreesAbout(0, 0, 1, -this->getRotation().fZ);
|
||||
cam_t.postConcat(rot);
|
||||
}
|
||||
|
||||
|
1
modules/skottie/tests/camera-rotation.json
Normal file
1
modules/skottie/tests/camera-rotation.json
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user