Download

How to create a moonlit ocean? Movable point light causes artifacts on surface

I’m trying to create an ocean scene at night lit by the moon. My idea is to create a movable point light with a very large attenuation radius. The problem is that I get rectangular artifacts on my test plane. If I make the light stationary the artifacts disappear, but in my case I need the moon to move.
Is there something generally wrong with my approach, or is there just a lighting setting that I need to tweak so that the artifacts disappear?

8f6d3d8eb8ff52cf7dabc22de4ee11804bb17677.jpeg

I think I need to use a movable point light because I want accurate specular reflections on the water surface, and the water surface should be lit dynamically by the moon. Is this the correct approach?
I don’t think a directional light will work for me, since I want to achieve an effect similar to these reference images:

Directional light is the way to go. Point light wont give the desired effect in long distance.

In my project I used two separate DirectionalLightSource’s as my sun and moon light and it works great.
The second reference image is easily achievable with this setup. :slight_smile:

First: The moon should be a directional light source, not point light. The moon is “infinitely” far away, like the sun is.
Second: Those artifacts could be many things. Bad normal maps, bad geometry, too low light map resolution, graphics driver bugs, bad shaders, …
You’ll have to experiment a little more to see what’s causing them.