mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-02 01:30:34 -06:00
Started expanding the module and renderable to include luminosity and velocity
This commit is contained in:
@@ -41,6 +41,8 @@ namespace {
|
||||
constexpr const char* ProgramName = "shaderProgram";
|
||||
constexpr const char* _loggerCat = "PointsCloud";
|
||||
constexpr const char* KeyData = "Data";
|
||||
constexpr const char* KeyLuminosity = "Luminosity";
|
||||
constexpr const char* KeyVelocity = "Velocity";
|
||||
|
||||
constexpr int8_t CurrentCacheVersion = 1;
|
||||
|
||||
@@ -140,6 +142,16 @@ namespace openspace {
|
||||
_hasPointData = true;
|
||||
}
|
||||
|
||||
if (dictionary.hasKey(KeyLuminosity)) {
|
||||
_luminosityData = dictionary.value<std::vector<float>>(KeyLuminosity);
|
||||
_hasLuminosityData = true;
|
||||
}
|
||||
|
||||
if (dictionary.hasKey(KeyVelocity)) {
|
||||
_velocityData = dictionary.value<std::vector<float>>(KeyVelocity);
|
||||
_hasVelocityData = true;
|
||||
}
|
||||
|
||||
if (dictionary.hasKey(OpacityInfo.identifier)) {
|
||||
_opacity = static_cast<float>(
|
||||
dictionary.value<double>(OpacityInfo.identifier));
|
||||
|
||||
Reference in New Issue
Block a user