- Home /
Underwater God Ray
How can I make underwater god rays. Unity does have a sun shaft script but the water blocks it also it only makes beams from objects. What I want is something like this : http://www.youtube.com/watch?v=6iKJHlbtMXM
Can't watch the video at the moment. Are you talking about caustics?
I'm talking about sunshafts underwater. Its like light beams
Isn't this what the area lights are for in pro? if you have pro.
Answer by zephyr7 · Oct 14, 2013 at 03:28 PM
You can always do these things manually for maximum control using additive shaders!
Make a plane or a cylinder with no caps
Make a ray texture by painting straight white rays that fade out at the lower end on a black background
Put the texture on your plane or cap-less cylinder using an additive shader, you can find one in the particle shader section! This only makes the bright parts of the texture visible. -Animate the plane/cylinder itself or some uv scrolling on the material and you have sunrays!
I have tried the texturing thing but it doesn't give me a realistic sun affect the rays are to thick and surrounding the cylynder. The effect is giving me light beams from different dirrections ins$$anonymous$$d of from one point which should be the sun. I would like to have a shape of a pyramid this would fix the problem.
Answer by MarkD · Mar 07, 2014 at 12:13 PM
There is as system on the asset store that does what you want I think https://www.assetstore.unity3d.com/#/content/13196
Your answer
![](https://koobas.hobune.stream/wayback/20220613115917im_/https://answers.unity.com/themes/thub/images/avi.jpg)