diff --git a/data/scene/debugglobe/debugglobe.mod b/data/scene/debugglobe/debugglobe.mod
index 8214df2753..dcd24117bf 100644
--- a/data/scene/debugglobe/debugglobe.mod
+++ b/data/scene/debugglobe/debugglobe.mod
@@ -23,8 +23,9 @@ return {
Frame = "IAU_EARTH",
Body = "EARTH",
--Radii = {6378137.0, 6378137.0, 6356752.314245}, -- Earth's radii
+ Radii = {1738100, 1738100, 1736000}, -- Moon's radii
--Radii = {3396190.0, 3396190.0, 3376200.0}, -- Mars' radii
- Radii = {2439700.0, 2439700.0, 2439700.0},
+ --Radii = {2439700.0, 2439700.0, 2439700.0},
CameraMinHeight = 1000,
InteractionDepthBelowEllipsoid = 10000, -- Useful when having negative height map values
SegmentsPerPatch = 90,
@@ -69,6 +70,7 @@ return {
FilePath = "textures/Mars_Viking_ClrMosaic_global_925m_longlat.cub",
--Enabled = true,
},
+ --[[
{
Name = "On Mercury Color",
FilePath = "map_service_configs/mercury/OnMercuryColor.xml",
@@ -77,12 +79,18 @@ return {
Name = "On Mercury Image",
FilePath = "map_service_configs/mercury/OnMercuryImage.xml",
},
+ ]]
},
GrayScaleOverlays = {
{
Name = "CTX Mosaic",
FilePath = "map_service_configs/mars/CTX_Mosaic.xml",
},
+ {
+ Name = "On Moon Color",
+ FilePath = "map_service_configs/moon/OnMoonColor.xml",
+ Enabled = true,
+ },
},
NightTextures = {
{
@@ -99,11 +107,16 @@ return {
{
Name = "Mola Elevation",
FilePath = "map_service_configs/mars/Mola_Elevation.xml",
+ --Enabled = true,
+ },
+ {
+ Name = "On Moon Height",
+ FilePath = "map_service_configs/moon/OnMoonHeight.xml",
+ Enabled = true,
},
{
Name = "On Mercury Height",
FilePath = "map_service_configs/mercury/OnMercuryElevationGaskell.xml",
- Enabled = true,
}
},
WaterMasks = {
diff --git a/data/scene/debugglobe/map_service_configs/moon/OnMoonColor.xml b/data/scene/debugglobe/map_service_configs/moon/OnMoonColor.xml
new file mode 100644
index 0000000000..5ba619a141
--- /dev/null
+++ b/data/scene/debugglobe/map_service_configs/moon/OnMoonColor.xml
@@ -0,0 +1,65 @@
+
+
+ http://onmoon.lmmp.nasa.gov/wms.cgi?
+ LRO WAC Mosaic, LMMP
+
+
+
+
+
+ -180.0
+ 90
+ 180.0
+ -90
+ 20
+ 2
+ 1
+ top
+
+ 512
+ 512
+
\ No newline at end of file
diff --git a/data/scene/debugglobe/map_service_configs/moon/OnMoonHeight.xml b/data/scene/debugglobe/map_service_configs/moon/OnMoonHeight.xml
new file mode 100644
index 0000000000..4c19299b75
--- /dev/null
+++ b/data/scene/debugglobe/map_service_configs/moon/OnMoonHeight.xml
@@ -0,0 +1,21 @@
+
+
+ http://onmoon.lmmp.nasa.gov/raw/wms.cgi?
+ Lunar Elevation v2, half meters
+
+
+
+ -180.0
+ 90
+ 180.0
+ -90
+ 24
+ 2
+ 1
+ top
+
+ 512
+ 512
+
\ No newline at end of file
diff --git a/modules/globebrowsing/shaders/texturetilemapping.hglsl b/modules/globebrowsing/shaders/texturetilemapping.hglsl
index b906211ae5..d455b93a59 100644
--- a/modules/globebrowsing/shaders/texturetilemapping.hglsl
+++ b/modules/globebrowsing/shaders/texturetilemapping.hglsl
@@ -216,9 +216,9 @@ vec4 calculateGrayScaleOverlay(
const vec4 currentColor,
const vec2 uv,
LevelWeights levelWeights,
- const Tile grayscaleOverlayTiles[NUMLAYERS_OVERLAY],
- const Tile grayscaleOverlayTilesParent1[NUMLAYERS_OVERLAY],
- const Tile grayscaleOverlayTilesParent2[NUMLAYERS_OVERLAY]) {
+ const Tile grayscaleOverlayTiles[NUMLAYERS_GRAYSCALE_OVERLAY],
+ const Tile grayscaleOverlayTilesParent1[NUMLAYERS_GRAYSCALE_OVERLAY],
+ const Tile grayscaleOverlayTilesParent2[NUMLAYERS_GRAYSCALE_OVERLAY]) {
vec4 colorGrayScale = vec4(0);
@@ -235,7 +235,7 @@ vec4 calculateGrayScaleOverlay(
levelWeights.w2 * getTexVal(grayscaleOverlayTilesParent1[#{i}], uv) +
levelWeights.w3 * getTexVal(grayscaleOverlayTilesParent2[#{i}], uv);
- colorSample = vec4(colorSample.r, colorSample.r, colorSample.r, colorSample.g);
+ colorSample = vec4(colorSample.r, colorSample.r, colorSample.r, 1);
colorGrayScale = blendOver(colorGrayScale, colorSample);
}
#endfor