good looking god-rays that will work on iPhone?

anyone have a recipe or technique for god-rays ( crepuscular rays )

simulating underwater shafts of light - that will work on an iPhone 3GS performance wise?

3 Answers

3

I've seen and used (but not in unity) a simple technique to simulate rays. It consists in creating a trapeze with transparent "rays" texture. To improve the effect, you may use several concentric trapezes.

Try using line render - use a alpha'd texture. Works quite well.

There is this system on the asset store Unity Asset Store - The Best Assets for Game Making
It generates light shafts based on a plane like @SAMsan suggested, it only takes away the trouble of setting up hundreds yourself and have real-time collision + multiple other options.

If you want it to follow a specific casting order you can even create a mesh (external program) and place vertices on all the spots you want a shaft to be casted, the system will use that vertex data (not the actual mesh) and create casts on given positions. This can be great for large scenes as well underwater.