Open aleqdev opened 11 months ago
skill issue
But then i set camera's clear color config to Color::WHITE and now it sometimes shows gradient and sometimes shows white color. I couldn't find a way to resolve this inconsistency.
Do you mean that this behavior varies between runs of the app? If so, I suspect this is a system order ambiguity bug.
Yes, it varies between runs. If it is system order bug, then is must be internal to the engine, because in my example i have only one startup system
Yep, I suspect this is related to #9511 then. I know @superdump just refactored the render schedule on main: perhaps he'll have insight here.
I've blocked @termisaal
from participating in bevy repos. Unacceptable behavior.
Bevy version
0.11.2
Relevant system information
cargo --version
:uname -a
:What you did
I want to set gradient as background color. So i made render node and inserted it between
PREPASS
andBEGIN_MAIN_PASS
. I also set camera clear config toNone
. I expected my shader to generate gradient and after that camera won't clear color and draw meshes on top of it. But it is not the case: color is black.Then i searched for the workaround. I added another camera thet renders just the gradient and set it's priority to
-1
. Doesn't work also.But then i set camera's clear color config to
Color::WHITE
and now it sometimes shows gradient and sometimes shows white color. I couldn't find a way to resolve this inconsistency.code: https://github.com/necromfox/bevy_before_main_pass
What went wrong
Expected main pass to preserve color written before it if camera render config set to
None
. Instead it does not.Additional information
I found that bevy used to have
ClearPass
one day, but i couldn't find it in the present.Screenshots
№1: clear color config set to
None
№2: clear color config set to
Color::WHITE
, sometimes it works...:№3: clear color config set to
Color::WHITE
, ...and sometimes it does not:Also white background appears often than gradient background