Hi there%
I am sure you need something like this on your games ...
And Live Demo.
http://gigatron3k.free.fr/html5/C2/FX/Rays
Update : Human brain forever ... i worked on with lightspeed.. and this FX is 99% done !
Finaly the fx File:
http://gigatron3k.free.fr/html5/C2/FX/rotaterays.rar
Tips : Vec2 = 2 values parameters like X.Y to access X do; vec2(0.2,0.0) << now x=0.2 and y=0
vec3 is 3 values params ; X,Y,Z..
vec4 is 4 values paramz; X,Y,Z,W <--- W ????? yes no letters after Z !
Enjoy the meditation./