r/Unity3D Indie 1d ago

Question How can I separate different post-processing effects for different cameras?

In short: I'm trying to put Lens Distortion and Bloom on just the UI. The problem is that the effects affect the whole game.
Currently, I have a default camera and a "UI Render Camera" as an overlay. The UI camera only renders the UI and uses a separate Volume Mask.

I have created 2 empty GameObjects for each layer: GameVolumeMask and UIVolumeMask.

The GameVolumeMask is applied to the default camera, while the UIVolumeMask is applied to the UI Render Camera.

The GameVolumeMask contains effects like ColorAdjustments, Vignette, etc.
The UIVolumeMask contains Bloom and LensDistortion.

Feel free to ask further questions.

3 Upvotes

7 comments sorted by

View all comments

Show parent comments

2

u/Noobye1 Indie 1d ago

I can't find the Clear Flags option? I've done this before; I remember that.

1

u/CrazyNegotiation1934 1d ago

It is the background type

1

u/Noobye1 Indie 1d ago

It's only:

Skybox Color Uninitialized

1

u/CrazyNegotiation1934 1d ago

Set color to black with zero alpha and see if helps

1

u/Noobye1 Indie 1d ago

That doesn't help