Checks bounded night-vision exposure and smooth transitions back to daylight.
Subsystem: Rendering, shaders, textures and lighting
Fixture/harness: nightvisionexposuretests
Setup: The standalone NightVisionExposureTests harness owns the inputs, local helpers and assertion sink used by the case files below.
Build/entry point: Tests/NightVisionExposureTests.vcxproj; declared configurations: Debug|Win32, Release|x64.
CloudNightVisionTests.h
Source: Tests/CloudNightVisionTests.h
Test Cloud Night Vision
Fixture: Night Vision Exposure tests
Case symbol: TestCloudNightVision
Source: Tests/CloudNightVisionTests.h:5
- Test
- Test Cloud Night Vision: strong gain retains a bright green signal instead of clipping it white; highlight compression preserves the gained red/green ratio; highlight compression preserves the gained blue/green ratio.
Source check messages (including original failure wording)
-
strong gain retains a bright green signal instead of clipping it white
-
highlight compression preserves the gained red/green ratio
-
highlight compression preserves the gained blue/green ratio
-
bright detail remains monotonic through the shoulder
-
cloud optics create no light from zero input
-
cloud exposure is bounded and finite across daylight fade
-
disabled cloud optics preserve the original atmosphere
-
colored clouds retain strong brightness enhancement throughout the deck
-
night cloud mixture preserves source color ratios through the climb
-
dense altitude sweep has no exposure step at the nominal cloud top
-
descent exactly restores each climb exposure without equipment cycling
-
camera/equipment, simulator and daylight restore baseline cloud color
NightVisionExposureTests.cpp
Source: Tests/NightVisionExposureTests.cpp
Entry-point checks
Fixture: Night Vision Exposure tests
Case symbol: main
Source: Tests/NightVisionExposureTests.cpp:21
- Test
- Entry-point checks: display optics use bounded night response; display optics fade toward daylight without a threshold pop; NVG enhances existing red cabin illumination without inventing other light channels.
Source check messages (including original failure wording)
-
display optics use bounded night response
-
display optics fade toward daylight without a threshold pop
-
NVG enhances existing red cabin illumination without inventing other light channels
-
local light resets for equipment/camera, simulator and daylight
-
display optics clear for equipment/camera, simulator and daylight
-
unpowered cabin cannot acquire a synthetic light source
-
cabin power dimming still reduces the assisted signal
-
below-deck cockpit light is not amplified twice
-
night sky lights cockpit surfaces above the deck
-
above-deck cockpit does not fall back to unassisted sky light
-
ascent/descent blends continuously between enhanced light sources
-
unequipped/external view uses baseline sky fill
-
simulator does not acquire enhanced sky fill
-
daylight cockpit stays unchanged
-
camera/equipment/simulator round trip restores cockpit light immediately
-
orbital darkness does not create a new light source
-
surface fill is bounded before texture modulation
-
cloud-top crossing does not introduce a lighting step
-
NVG low-sun cloud/ground brightness remains readable
-
daylight gain is identity
-
return below deck restores the same gain without re-equipping
-
gain is finite at zero and subthreshold signals
-
absent light is not replaced with a brightness floor
-
unequipped/external camera clears enhanced gain
-
simulator entry preserves original gain and suppresses enhanced clouds
-
simulator exit recomputes real-flight gain
-
nighttime lightning still produces a strong flash
-
cloud-top exit recovers without switching off NVG
-
no phantom exposure during prolonged flight above clouds
-
continuous weaker flashes cannot latch an earlier full whiteout
-
daylight flashes cannot preserve nighttime saturation
-
daytime flash clears within a second
-
nighttime recovery retains the gradual effect
-
a new strong strike can retrigger saturation
-
external camera or unequipping NVG immediately clears state
-
simulator entry clears an active real-flight afterimage even while equipped
-
simulator exit cannot replay the cleared afterimage
-
subthreshold flashes do not accumulate
-
zero elapsed time does not advance recovery
-
long frames consume both hold and fade time