Update culling to be done with double precision.

This commit is contained in:
Kalle Bladin
2016-06-06 17:40:11 -04:00
parent f51f282dbb
commit ba437809e0
9 changed files with 80 additions and 73 deletions
@@ -61,6 +61,7 @@ namespace openspace {
, lodScaleFactor(properties::FloatProperty("lodScaleFactor", "lodScaleFactor", 5.0f, 1.0f, 20.0f))
, initChunkVisible(properties::BoolProperty("initChunkVisible", "initChunkVisible", true))
, renderSmallChunksFirst(properties::BoolProperty("renderSmallChunksFirst", "renderSmallChunksFirst", true))
, chunkHeight(properties::FloatProperty("chunkHeight", "chunkHeight", 8700.0f, 0.0f, 8700.0f))
, useHeightMap(properties::BoolProperty("useHeightMap", "useHeightMap", true))
, useColorMap(properties::BoolProperty("useColorMap", "useColorMap", true))
, blendHeightMap(properties::BoolProperty("blendHeightMap", "blendHeightMap", true))
@@ -75,6 +76,7 @@ namespace openspace {
addProperty(lodScaleFactor);
addProperty(initChunkVisible);
addProperty(renderSmallChunksFirst);
addProperty(chunkHeight);
addProperty(useHeightMap);
addProperty(useColorMap);
@@ -252,6 +254,7 @@ namespace openspace {
_chunkedLodGlobe->mergeInvisible = mergeInvisible.value();
_chunkedLodGlobe->lodScaleFactor = lodScaleFactor.value();
_chunkedLodGlobe->initChunkVisible = initChunkVisible.value();
_chunkedLodGlobe->chunkHeight = chunkHeight.value();
_chunkedLodGlobe->useHeightMap = useHeightMap.value();
_chunkedLodGlobe->useColorMap = useColorMap.value();