-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* transform cache now deals with Affine3 matrices only * use a perspective camera in 2d views that sit at a space camera * clarify/simplify use of focal length * refine camera plane distance heuristic for 2D scenes and make it configurable again * comment wip * merge fixup and comment improvements * line & point builder now work with affine transforms * wip * improved image plane heuristic for 2D * hack for image plane distance for in inverse pinhole transforms. remove setting from ui again for 2d views * add viewport transformation to viewbuilder * better viewport transform * limit zoom, correctly handle ui scale under viewport zoom * 2D points now draw as real 2D circles * better 2D rendering for lines with perspective camera around * disable 3D labels in 2D views * space camera no longer required for correct pinhole camera in ui_2d * consistent canvas rect handling, take principal point into account when displaying 2d canvas * comments on the nature of our interim 3D->2D solution * point out that picking should use same transforms * easier point/line flag building * minor cleanup * doc test fix * clarify what sphere_quad's coverage methods do * fix taking only one axis into account for pixel size approximation * comment explaining how to use FORCE_ORTHO_SPANNING * remove unnecessary affine3a multiply method * impl From<glam::Affine3A> for wgpu_buffer_types::Mat4 * rename rect top_left to min * remove unnecessary quaternion on pinhole transform calc * make error swallowing on screenshots more explicit * failure to compute camera now logs error and stops from rendering * note on non-square pixels * better handle different x & y focal length + comment * renaming and tests around RectTransform * yet another workaround for https://github.com/gfx-rs/naga/issues/1743 * remove h word
- Loading branch information
Showing
44 changed files
with
807 additions
and
455 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,7 @@ | |
"Skybox", | ||
"smallvec", | ||
"swapchain", | ||
"texcoord", | ||
"texcoords", | ||
"Tonemapper", | ||
"tonemapping", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.