Closed aromanro closed 4 years ago
Just checked, there are bump maps and normal maps https://en.wikipedia.org/wiki/Normal_mapping available for some of the planets/moons.
Done. There might be some issues with some normal maps out there (not all I found seem to be ok) but bump mapping / normal mapping works now. If a bump map / height map is provided (8 bpp gray image), a normal map is computed using Sobel.
If I recall correctly, for some planets I found bump mapping textures. It would be nice to add bump mapping at least for one (preferably Earth). Just add an optional parameter for each planet/moon for the bump mapping texture and if one is available for a planet/moon, do bump mapping https://en.wikipedia.org/wiki/Bump_mapping.