as you can see in the link above the godrays effect is coming from the left of the screen and scattering according to the light direction, and not just scattering to the camera, like the current godrays do in 3d rad.
I remember i did this at some point there's this "float2set()" or something that does it. Let me dig around my files maybe i'll find it
EDIT: Found it!
Here's the code for you!
OBJ_0 is a skinmesh from where the ray will be rendered
//////////////////////////////////////////////////////////////////////////////////////////////////////////// // Post-process shader: display deformation and color manipulation ////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Output sample as original rendered/colored objects not just depthmask, comment out if only light is wanted if (sample.r+sample.g+sample.b < 2.0f) sample.rgb=0; //else sample=1.0f; //enable to output just white
I made this tweak for a game I was making, mostly to use as sun rays, WhyNotYT's script is nearly there. But I remember I added an extra few lines to modify the direction of the rays relative to the observer, to make it move correctly when the observer moves, relative to the light.
I'll post the script when I get home, but here's a day/night cycle video that has the effect in it, I don't know if the effect is pronounced, but you can see it during sunrise and sunset