-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
check for any prepass phase #10160
check for any prepass phase #10160
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It sucks that this isn't user extensible. Definitely feels like a good first-party use of trait queries.
Another viable option would be to make the function generic over the RenderPhase and add it twice, but I wanted to do a quick/easy fix first |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit uneasy about the unwraps. I know they can't currently happen but it still feels a bit wrong if the code ever changes. Not sure what would be better though.
I am only adding two to the existing two … also I think a crash here is probably fine since it implies an engine code error, never a user error? |
# Objective deferred doesn't currently run unless one of `DepthPrepass`, `ForwardPrepass` or `MotionVectorPrepass` is also present on the camera. ## Solution modify the `queue_prepass_material_meshes` view query to check for any relevant phase, instead of requiring `Opaque3dPrepass` and `AlphaMask3dPrepass` to be present
# Objective deferred doesn't currently run unless one of `DepthPrepass`, `ForwardPrepass` or `MotionVectorPrepass` is also present on the camera. ## Solution modify the `queue_prepass_material_meshes` view query to check for any relevant phase, instead of requiring `Opaque3dPrepass` and `AlphaMask3dPrepass` to be present
Objective
deferred doesn't currently run unless one of
DepthPrepass
,ForwardPrepass
orMotionVectorPrepass
is also present on the camera.Solution
modify the
queue_prepass_material_meshes
view query to check for any relevant phase, instead of requiringOpaque3dPrepass
andAlphaMask3dPrepass
to be present