I have a Unity scene for demonstrating in VR how different kinds of window shades will block different amounts of sunlight. This is eventually going to help architects choose shades for their buildings.
Everything's great, except I can't get my Lens Flares to render properly.
- I want the cross-shaped Lens Flare to only appear overtop the window shade (not over the clear glass below it).
- I want the round-soft-circle Lens Flare to only appear over the clear glass below the shade (not over the window shade above it).
But the Ignore Layers dropdown seems to act erratically. Anyone else have experience or tips for using this?
- Window glass = set to Layer "Glass", and box collision added.
- Window shade = set to Layer "Shade", and box collision added.
- Directional Light "GlassLight" = set to Layer "Glass".
- Directional Light "GlassLight" Lens Flare component = set to Ignore Layers "Glass".
- Directional Light "ShadeLight" = set to Layer "Shade".
- Directional Light "ShadeLight" Lens Flare component = set to Ignore Layers "Shade".
What it's supposed to look like:
Replies
I still wish though that I could mask the flare to only appear actually on the shade mesh, and not bleed over the edge to appear over the glass too. Oh well, close enough.
I guess I should have understood that it doesn't care about which collider is in front of another. If the ray hits one, it stops, period.