Hi all!
Well, I'm trying to customize the visual of the sun of my 3d game. I already have a sky shader to handle the day/night cycle, but I just can see the default sun/moon halo. I'd like to change it, not only the color, but the shape as well. I was trying to create a mesh as a child of the DirectionalLight3D (sun), but it doesn't work. I'm able to see the mesh on the sky, but it's not following the sun path, even being a child node.
Any help is appreciated. 🙂

  • xyz replied to this.

    fabianom In the sky shader calculate the falloff from the apparent sun center using the dot product between eye direction and sun direction. Drive a gradient with that falloff to make any type of sun disc.

    You can also map a sun texture there. This is a tiny bit more involved. I think I recently posted an answer on how to do this. Search around.