mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-23 20:50:59 -05:00
Merge branch 'feature/globebrowsing' of github.com:OpenSpace/OpenSpace-Development into feature/globebrowsing
This commit is contained in:
@@ -39,7 +39,7 @@ namespace {
|
||||
|
||||
namespace openspace {
|
||||
|
||||
const float Chunk::DEFAULT_HEIGHT_VALUE = 0.0f;
|
||||
const float Chunk::DEFAULT_HEIGHT = 0.0f;
|
||||
|
||||
Chunk::Chunk(ChunkedLodGlobe* owner, const ChunkIndex& chunkIndex, bool initVisible)
|
||||
: _owner(owner)
|
||||
@@ -133,8 +133,8 @@ namespace openspace {
|
||||
boundingHeights.available = true;
|
||||
|
||||
if (preprocessData->hasMissingData[0]) {
|
||||
boundingHeights.min = std::min(DEFAULT_HEIGHT_VALUE, preprocessData->minValues[0]);
|
||||
boundingHeights.max = std::max(DEFAULT_HEIGHT_VALUE, preprocessData->maxValues[0]);
|
||||
boundingHeights.min = std::min(DEFAULT_HEIGHT, preprocessData->minValues[0]);
|
||||
boundingHeights.max = std::max(DEFAULT_HEIGHT, preprocessData->maxValues[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,6 +45,9 @@ namespace openspace {
|
||||
|
||||
class Chunk {
|
||||
public:
|
||||
|
||||
const static float DEFAULT_HEIGHT;
|
||||
|
||||
struct BoundingHeights {
|
||||
float min, max;
|
||||
bool available;
|
||||
@@ -72,7 +75,6 @@ namespace openspace {
|
||||
void setIndex(const ChunkIndex& index);
|
||||
void setOwner(ChunkedLodGlobe* newOwner);
|
||||
|
||||
const static float DEFAULT_HEIGHT;
|
||||
|
||||
private:
|
||||
|
||||
|
||||
@@ -199,7 +199,7 @@ namespace openspace {
|
||||
layeredTexturePreprocessingData.keyValuePairs.push_back(
|
||||
std::pair<std::string, std::string>(
|
||||
"defaultHeight",
|
||||
std::to_string(Chunk::DEFAULT_HEIGHT_VALUE)));
|
||||
std::to_string(Chunk::DEFAULT_HEIGHT)));
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user