-
-
Notifications
You must be signed in to change notification settings - Fork 838
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix normals map of the Moon, increase its resolution and implement sh…
…adows With the old normal map, near the poles we had dark-shaded parts of craters that should actually be brighter — as if the Sun is not where it is, and this behavior inconsistently depended on longitude... The new texture added in this commit fixes behavior of shadows. Now the resolution of the normal map is the half that of the reflectance texture, 2048×1024. Further increase leads to excessive noise due to lack of proper mip mapping (and its non-triviality for normal maps), so this looks like a good compromise between the shapes of the craters and background noise. Additionally, a new kind of texture is added: horizon map. This texture contains elevation of the horizon in four directions: North, East, South, West. These elevations take terrain (mountains, craters etc.) surrounding each point of the map into account. These data are used in the fragment shader to determine whether the Sun is visible or is hidden behind the terrain. The data for the normals and horizon maps were generated using the elevation data in the CGI Moon Kit: https://svs.gsfc.nasa.gov/cgi-bin/details.cgi?aid=4720 .
- Loading branch information
Showing
11 changed files
with
85 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.