mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 19:19:39 -06:00
Requested changes for merging. Part II.
This commit is contained in:
@@ -699,8 +699,11 @@ bool RenderableStars::readSpeckFile() {
|
||||
} while (!file.eof());
|
||||
|
||||
// Normalize Luminosity:
|
||||
int luminosityVarColumnPos = 4;
|
||||
for (size_t i = 0; i < _fullData.size(); i += _nValuesPerStar) {
|
||||
_fullData[i + 4] = (_fullData[i + 4] - minLumValue) / (maxLumValue - minLumValue);
|
||||
_fullData[i + luminosityVarColumnPos] =
|
||||
(_fullData[i + luminosityVarColumnPos] - minLumValue) /
|
||||
(maxLumValue - minLumValue);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user