Rise
The Vieneo Province
Loading...
Searching...
No Matches
NightVisionStars.h
Go to the documentation of this file.
1#pragma once
2#include "NightVisionGain.h"
3
5{
6inline float Gain(const NightVisionGain::Response& vision)
7{
8 if (!vision.clouds) return 1.f;
9 // The star catalog is already display-referred, unlike the very faint
10 // atmospheric radiance. Reusing the full cloud gain would flatten its
11 // brightness hierarchy and fill the sprites. This bounded 8x calibration
12 // is artistic, not stellar photometry or a Vieneo extinction coefficient.
13 // Follow the existing low-light response continuously; no altitude gate
14 // or persistent adaptation state is introduced here. Equal RGB gain keeps
15 // the catalog's authored stellar colors under the shared RGB shoulder.
16 return 1.f + 7.f * (1.f - 1.f / (std::max)(1.f, vision.green));
17}
18}
float Gain(const NightVisionGain::Response &vision)