- Home /
Sun Shafts from a single Light Source?
Hi! I've got a huge problem. I need to cast Sun Shafts for the Sun in one, big open-world scene, but using the Unity's built-in Sun Shaft creates the shafts from all brightely lit spots (like clouds and lanterns).
How can I set the Sun Shafts to cast from only a single Light Source (the Sun itself, a directional light)?
Answer by mikelortega · Jun 03, 2016 at 10:47 AM
In the Sun Shafts script check: Rely on Z Buffer? [✓]
Unchecking or checking it makes the Shafts disappear altogether. It may be connected with the fact that the player has two cameras attached.
How does Rely on Z Buffer work?
Your answer
Follow this Question
Related Questions
Sunshaft Image Effect Help 1 Answer
Light Shaft 1 Answer
Sun Shafts Effect and Clouds, Possible? 1 Answer
Rendering sun-shafts even when light is not in view. 0 Answers
shafts of light in fog? 3 Answers