Camera Image Effects Parallaxing

I’m trying to figure out, how I can add Image Effects on a single Camera in a parallax system.

I’m using Pro Camera 2D’s parallax system. The goal is, that I can add in example a “Blur” Image Effect to the foreground layer. It should not affect the layers behind (ground, character, background, skybox,…). I tried already with Camera Depth. This works nealry, but this will also change the parallax sorting layers. In this case this means, that the sorting is no more correct (Background is now on foreground, forground on background).

Anyone got some tips to achieve this? I googled already, but doesn’t found any solution for this. Maybe I have to do my own Image Effects, which can be added to the Assets!?

Thanks!

I haven’t tried yet, but if I’m not mistaken, PC2D’s parallax requires a camera component for each parallax layer. Could you just add the blur effect from standard assets to the gameobject with the layer’s camera component?

EDIT: Nevermind, I just tried it. It seems like you’ll have to modify the blur shader to only process a specific depth range. I’m not particularly strong with shaders but I’ll try to look into it more later and see if I can be of more help.

I thought about this alredy, but the same here. I’m not very strong in shaders. Maybe anyone else can help us :slight_smile: