-
I have a window with Camera2D. On that window I want to apply a number of fragment shaders with temporary image buffers in between. Example: Shader to render dot matrix pixels + Shader that applies glow to the dot matrix. I found a way to do this by by setting up a chain of Camera2D + RenderLayers + Image that is used as buffer + shader MeshMaterial2d. The resulting Image is then used on a Mesh2d with MeshMaterial2d that again has a Camera2D that renders to an Image and everything repeats. Something tells me that there should be a better way to do this like Three.js EffectComposer. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You should use the post processing features. You can call the functions multiple times in the same node if you to stack fullscreen effects. |
Beta Was this translation helpful? Give feedback.
No, I'm talking about post_processing. You don't need any specialized pipeline for that.
https://bevyengine.org/examples/shaders/custom-post-processing/