Does bevy provide an API similar to unity's GrabPass? #16008
-
I'm trying to achieve photoshop's layer blend modes effect with bevy sprite, like overlay, soft light, hard light, which I often use in unity. this is the blend modes i want to achieve, mainly overlay, soft light, hard light. this is the blend mode component i used in unity, which used GrabPass in his shader. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
No there is not. It also generally performs poorly and should be avoided if possible in Unity. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
emmm, i dont now why wgpu::RenderPass have a mutable reference of CommandEncoder. if i can access this command_encoder, the problem will solve. unfortunately it is belong to wgpu not bevy. |
Beta Was this translation helpful? Give feedback.
You'll probably need to rip out the existing opaque render pass node, and add your own that splits the draws up into multiple different render passes, inserting texture copies in between.
There's nothing built into bevy for this.