Sun-rays at night?

Does anyone know how to have sun rays at night? I have seen it done without parts etc and I can’t find anyone, anywhere showing how it’s done. It might be a script or something, I am not sure. Thanks.

3 Likes

Did you mean moonlight that is cast through window or something else?

1 Like

Moonlight that behaves the same as sun-rays do, so yes they would cast through a window.

The question still remains ambiguous, but it is possible that you are referring to beams or a lighting technique. If you have any visual media that presents such behavior, can you please provide them?

The SunRaysEffect is what I am trying to achieve, but at night.

What I often do is add a night sky skybox, and change the sun’s decal to the moon. If you want to have the darkness of night, try adding fog to replicate it. Hope this helps.

1 Like

How about using a night skybox and replacing the default sun with a moon texture using the SunTextureId property of skybox? Then just add the SunRaysEffect to achieve the desired result.

8 Likes

Epic. Thankyou so much, this works!

Awesome, thank you so much. :smiley: