#How to apply shader in specific camera ?

3 messages · Page 1 of 1 (latest)

shrewd flint
#

By default, render node will take effect for both current camera and lower order cameras.
Is there any way to make it work only for current camera?

Same discussion: https://discord.com/channels/691052431525675048/1095505859968245810

https://github.com/bevyengine/bevy/discussions/14675

GitHub

I modifyed "post_process" example to 2d, and I had multiple cameras. When I add "PostProcessSettings" component to one of cameras, the effect will apply to the texture in other ...

#

This may have something to do with MsaaWriteback. But bevy_render source code is maze for me.ferris_sob

#

As alternative, we can set camera render target to an image then create MaterialMesh2dBundle to set shader. But it will get 1 frame delay.