Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upfeat: Support transparency in core passes #574
Conversation
Rhuagh
added
type: improvement
project: rendering
status: working
labels
Feb 14, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Only one pass so far, will continue tomorrow. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Xaeroxe
Feb 14, 2018
Member
I like this so far, of course we'll still need to sort the entities back to front. I'm still not sure how to do this without recalculating the distance between every transparent mesh and the camera every frame though. We might just have to accept the performance hit.
|
I like this so far, of course we'll still need to sort the entities back to front. I'm still not sure how to do this without recalculating the distance between every transparent mesh and the camera every frame though. We might just have to accept the performance hit. |
Xaeroxe
requested review from
omni-viral,
Aceeri and
torkleyy
Feb 14, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
PBM and bundle updates left. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Rhuagh
Feb 15, 2018
Member
The current sorting system does what @Xaeroxe said, it recomputes every frame. This should be fairly easy to fix when we get Tracked in specs released.
|
The current sorting system does what @Xaeroxe said, it recomputes every frame. This should be fairly easy to fix when we get |
Rhuagh
changed the title from
[WIP] feat: Support transparency in core passes
to
feat: Support transparency in core passes
Feb 15, 2018
Rhuagh
added
status: ready
and removed
status: working
labels
Feb 15, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
torkleyy
Feb 16, 2018
Member
Reviewed 3 of 13 files at r1.
Review status: 3 of 13 files reviewed at latest revision, all discussions resolved.
Comments from Reviewable
|
Reviewed 3 of 13 files at r1. Comments from Reviewable |
| + ) | ||
| + }) | ||
| + .filter(|c| c.3.dot(camera_forward) > 0.) // filter entities behind the camera | ||
| + .collect(); |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
torkleyy
Feb 16, 2018
Member
Reviewed 2 of 13 files at r1.
Review status: 5 of 13 files reviewed at latest revision, 2 unresolved discussions.
amethyst_renderer/src/pass/util.rs, line 149 at r1 (raw file):
None => return, }; if let None = material {
Should be is_none; can be || together with the if-block below.
Comments from Reviewable
|
Reviewed 2 of 13 files at r1. amethyst_renderer/src/pass/util.rs, line 149 at r1 (raw file):
Should be Comments from Reviewable |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
torkleyy
Feb 16, 2018
Member
Reviewed 6 of 13 files at r1.
Review status: 11 of 13 files reviewed at latest revision, 2 unresolved discussions.
Comments from Reviewable
|
Reviewed 6 of 13 files at r1. Comments from Reviewable |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Rhuagh
Feb 18, 2018
Member
Review status: 11 of 13 files reviewed at latest revision, 2 unresolved discussions.
amethyst_renderer/src/transparent.rs, line 79 at r1 (raw file):
Previously, Xaeroxe (Jacob Kiesel) wrote…
Should use a
clear()andextend()here to re-use the allocation.
Done.
amethyst_renderer/src/pass/util.rs, line 149 at r1 (raw file):
Previously, torkleyy (Thomas Schaller) wrote…
Should be
is_none; can be||together with the if-block below.
Done.
Comments from Reviewable
|
Review status: 11 of 13 files reviewed at latest revision, 2 unresolved discussions. amethyst_renderer/src/transparent.rs, line 79 at r1 (raw file): Previously, Xaeroxe (Jacob Kiesel) wrote…
Done. amethyst_renderer/src/pass/util.rs, line 149 at r1 (raw file): Previously, torkleyy (Thomas Schaller) wrote…
Done. Comments from Reviewable |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
torkleyy
Feb 18, 2018
Member
Reviewed 2 of 2 files at r2.
Review status: all files reviewed at latest revision, 1 unresolved discussion.
Comments from Reviewable
|
Reviewed 2 of 2 files at r2. Comments from Reviewable |
Rhuagh commentedFeb 14, 2018
•
edited by torkleyy
Edited 1 time
-
torkleyy
edited Feb 14, 2018 (most recent)
This change is