Rise
The Vieneo Province
Toggle main menu visibility
Loading...
Searching...
No Matches
NightVisionStars.h
Go to the documentation of this file.
1
#pragma once
2
#include "
NightVisionGain.h
"
3
4
namespace
NightVisionStars
5
{
6
inline
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
}
NightVisionGain.h
NightVisionStars
Definition
NightVisionStars.h:5
NightVisionStars::Gain
float Gain(const NightVisionGain::Response &vision)
Definition
NightVisionStars.h:6
NightVisionGain::Response
Definition
NightVisionGain.h:7
NightVisionGain::Response::green
float green
Definition
NightVisionGain.h:8
NightVisionGain::Response::clouds
bool clouds
Definition
NightVisionGain.h:9
Viewscreen
NightVisionStars.h
Generated on
for Rise by
1.18.0