I am trying to add shadows to the game. It works somehow, but I would like to improve the quality of shadows. I created a short video where directional light is changing its direction to show current state.
https://youtu.be/hDgs_exiJlI
You can notice two things:
- The shadows (when you see the barbarian's shadow or shadow of the temple) are "frayed". It almost looks like there are more lights casting shadows, but there is really just one.
- Terrain is a grid consisting from coupled triangles with square shape. For better looking terrain I used technique described here http://gamedev.stackexchange.com/questi ... grid#45117 but I am still not happy with that (especially with shadows). Currently every game tile consists of 9x9 vertices. How would you calculate normals for these vertices? I currently do it the simple way that I take these three vertices of triangle and calculate normal with Math.CalculateBasicFaceNormal. Is there a better way how to make the shadows smoother?