- Home /
Standard Assets sun shafts ignore object?
Hi, I'd like for the Sun Shafts Image Effect to ignore certain objects (like particles). Is there a way to do that? Thanks!
Answer by JoshBaz · Jan 15, 2017 at 11:43 AM
Consider changing the layer of those objects to Transparent FX and also check to see if those objects have unnecessary colliders on them.
Answer by tanoshimi · Jan 16, 2017 at 10:01 PM
Without looking at the effect, but I'm guessing it's done in screenspace in which case the only way would be to render the objects you don't want to be affected using a secondary camera layered on top of the first.
The component has two blend modes actually. "Screen", shown in the below image and "Add", not shown. I tried switching to "Add" and changed the particles to transparentFX to no avail. I haven't tried doing the two camera method though. How would that work?