How to make sun flare visible through certain objects

How do you make the sun flare effect visible through objects such as glass walls or fences without turning off the collider? In particular, are there ways to achieve this when using either transparent or cutout shaders?

You can try a couple of things here, you can go to Edit → Project Settings → Physics and check the layer collision matrix if you set correctly your layers you can uncheck the layers you don’t want to interact with each other and therefore ignore the colliders of certain objects.

The other one is to add a lens flare component to your light and then you can play with the “Ignore layers” option basically goes back to the layer setup of your proyect a window must be on the TransparentFX layer