Reputation: 169
I have a basic scene with a ground and a unique light. But where the light its the mesh it produce a strange effects. The shadows are casted without any problem, but all the others meshes affected by the light produce a weird effect.
And here is a screenshoot that what is going on:
The black square on the ground and the black lights are produced by the light.
Upvotes: 2
Views: 61
Reputation: 86
That artifact looks like what is known as "shadow acne". It is a common problem of shadow mapping. Just a little modification is needed in the shader that takes care of shadow mapping.
You can find a very well written guide on shadow mapping here. Basically there are two solutions explained there:
Of course in order to do this you would need to have access to the fragment shaders.
Upvotes: 1