where i can get a glare shader? For example, istead of using flare sprites.. that would intersect with objects.. There is a glare similar to glow, using for example for sun, where if part of the sun is not visible, it will fade out, but the other part still showing , dynamicly.
at least the first is hdr...i think the second on is some kind of 'makeraysbehindobjects' shader :S
It's postprocessing. you have to pass the position of the sun and then you can calculate the rays by doing lookups towards sun direction.
But i didn't see such a shader around here and i'm too lazy and busy to write such. I suppose it would be pretty slow btw because you have to do a lot of lookups
you can easily create such a sun ray shader with the help of a radial blur shader. All you need is a rendertarget which stores all objects as plain white color and the sky as black color. You then pass this to the radial blur shader, do some calculations and you are set. Have a look at the radial blur shader in shade-c. It actually does exactly what i was talking about above. I just commented it out, as it wasn't very user friendly at the time i released the last version of shade-c