torsteingrindvik / bevy-vfx-bag

Apache License 2.0
135 stars 8 forks source link

Allow masking effects #44

Open torsteingrindvik opened 2 years ago

torsteingrindvik commented 2 years ago

We might not want to apply an effect to the whole input.

E.g. perhaps we want to blur/pixelate/... only outer edges.

So:

Allow an input texture (one channel texture perhaps?) which controls how we mix between the produced output of an effect, and the previous input.

If this is just Option<Handle<Image>>, and the default fallback is a white pixel, then this should already work out I think?

EDIT: Related: #34