Hey!
I pretty much copied the Post Processing - Custom Render Pass Example and changed it so it works in 2d.
I can now successfully make everything more blue based on a number!
but, i'd like to have some entities (which would have a mesh 2d) not be affected by this!
I figured I could maybe create a mask on the meshes, and pass that to the post processing shader?
But i'm unsure how.
any guidance, or even better maybe examples, would be very appreciated!
while going through the code and looking at some resources i found, i figured that i:
- create a marker entity that says this entity should not be effected by the shader
- collect all 2d meshes with this marker
- extracting them into the render app(?)
- creating a texture for each of them
- and passing that into the shader
i think the meshes are actually already being extracted into the render world, so maybe i actually only have to insert the Marker on the render app to the matching entities?
and i'm very unsure on 4 and 5, like how i'd do exactly that.