Sun light goes through mesh?

I’m trying to make a solar eclipse, but the light goes through the moon, how to fix it?

Are you sure the light is going “through” the moon? It looks more like a specular highlight to me, possibly from light bouncing off the surface of something else (like the ground of the earth). If the material of the moon is opaque, it should be impossible for light to pass through it.

I’m sure it come from dir of the Sun.

Caused by the mie scattering component of the SkyAtmosphere, enable “cast shadows on atmosphere” in your directional light, and ensure you set far shadows to enabled in your planet mesh.

You may need to add a far shadow cascade to your directional light, if you’re using cascaded shadowmaps.

1 Like