aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/utils
diff options
context:
space:
mode:
authorGravatar Jim Van Verth <jvanverth@google.com>2017-04-11 15:29:14 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-04-11 20:26:46 +0000
commitda96550d3941cb794a799c73506a1c5b695c70a1 (patch)
tree3123707b3e7d82398de0ebb9f75466906a2e6928 /include/utils
parent1119dc366e15ef737d05d3a087410ea40c508101 (diff)
Add perspective shadows
Bug: skia: Change-Id: I1972f85f593828c982ea08143e1ed7eb70345eaa Reviewed-on: https://skia-review.googlesource.com/10296 Commit-Queue: Jim Van Verth <jvanverth@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'include/utils')
-rw-r--r--include/utils/SkCamera.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/utils/SkCamera.h b/include/utils/SkCamera.h
index 4b77ec685d..3cb13fc19b 100644
--- a/include/utils/SkCamera.h
+++ b/include/utils/SkCamera.h
@@ -103,10 +103,10 @@ public:
void update();
void patchToMatrix(const SkPatch3D&, SkMatrix* matrix) const;
- SkPoint3D fLocation;
- SkPoint3D fAxis;
- SkPoint3D fZenith;
- SkPoint3D fObserver;
+ SkPoint3D fLocation; // origin of the camera's space
+ SkPoint3D fAxis; // view direction
+ SkPoint3D fZenith; // up direction
+ SkPoint3D fObserver; // eye position (may not be the same as the origin)
private:
mutable SkMatrix fOrientation;