Started expanding the module and renderable to include luminosity and velocity

This commit is contained in:
aniisaaden
2020-10-13 10:15:09 +02:00
parent 3321be2a81
commit c428f097ea
7 changed files with 43 additions and 9 deletions

View File

@@ -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));