Rise
The Vieneo Province
Loading...
Searching...
No Matches
Local Lightning11 tests

Checks local lightning radiance, geometry and native scene integration.

Subsystem: Weather, clouds, lightning and atmospheric visibility
Fixture/harness: locallightning11tests
Setup: The standalone LocalLightning11Tests harness owns the inputs, local helpers and assertion sink used by the case files below. Graphics setup uses NativeUiTest11.

Build/entry point: Tests/LocalLightning11Tests.vcxproj; declared configurations: Debug|Win32, Release|Win32.

LocalLightning11Tests.cpp

Source: Tests/LocalLightning11Tests.cpp

Entry-point checks

Fixture: Local Lightning11 tests
Case symbol: main
Source: Tests/LocalLightning11Tests.cpp:36

Test
Entry-point checks: return-stroke radiance survives the normalized animation pulse; pulse input stays bounded without clipping light energy to one; bright channel reaches display white through moderate haze.
Source check messages (including original failure wording)

  • return-stroke radiance survives the normalized animation pulse
  • pulse input stays bounded without clipping light energy to one
  • bright channel reaches display white through moderate haze
  • emissive bolt still fades with optical distance and vanishes at pulse end
  • night vision responds to incident radiance instead of the unscaled animation pulse
  • night vision recovers after an intense return stroke
  • strike converts to the same physical frame as scene geometry
  • separate fog retains the real source-to-surface extinction
  • disabled/simulator/finished pulses clear their shader state
  • observer translation and camera offset do not change strike location
  • inactive lightning preserves every baseline pixel
  • strike-facing surfaces receive the peak; reverse faces retain weak cloud fill
  • small derivative normals match authored hull normals at the same pose
  • distant strikes do not change global ambient
  • light follows the same pulse/intensity linearly
  • ending the flash removes all direct, fill and fog contributions
  • 750 m fog attenuates both direct and cloud-bounce surface light
  • spatial fog suppresses material scattering without disabling surface extinction
  • hull normals reject direct light on reverse faces
  • local strike cannot illuminate orbital surfaces through the cloud deck
  • peak lights dark paint intensely while preserving weaker reverse-face cloud fill
  • full-power strike does not globally illuminate distant dark paint
  • peak radiance also drives visible atmospheric scattering
  • fog integrates the visible path and stops at foreground geometry
  • no fog scattering in vacuum
  • fog glow stays around the bolt bearing
  • GPU timestamps are valid
  • cloud illumination stays at the same bolt endpoint
  • cloud pulse reset and simulator disable clear both volume light and fog
  • lightning cloud/fog preserves cockpit stencil
  • lightning cloud/fog preserves foreground depth
  • cloud glow surrounds the upper bolt on both sides beyond the fog cutoff
  • sky glow follows the strike position without global ambient brightening
  • sky glow ends exactly with the pulse
  • sky glow respects cockpit stencil and foreground depth
  • emissive sky glow survives haze that erased it previously
  • inactive sky remains pixel-identical to the previous renderer

CockpitLightning11Fixture.h

Source: Tests/CockpitLightning11Fixture.h

Cockpit Lightning Checks

Fixture: Local Lightning11 tests
Case symbol: CockpitLightningChecks
Source: Tests/CockpitLightning11Fixture.h:4

Test
Checks glass retains component ownership and lightning uses the actual admitted source direction/distance.
Source check messages (including original failure wording)

  • cached glass retains its cockpit component
  • admitted channel light has the real source direction and distance
  • light behind the solid cabin is blocked; weaker scattered cloud fill remains
  • window admission follows vehicle/component rotation
  • camera, source and glass translations preserve illumination
  • cockpit follows the exterior pulse linearly
  • distant bolts do not directly light the cabin
  • above-deck cockpit receives no below-cloud channel light
  • simulator/closed bay exposure disables the flash
  • partially open parent bay reduces incident light
  • hidden windows do not admit direct light or diffuse fill
  • windowless cabins remain isolated
  • inactive pulses skip all window transforms and ray tests
  • cockpit light slots are restored before world drawing
  • real cockpit pipeline produces a directional peak and weaker reverse-face fill
  • opaque-side strikes produce only weak cloud bounce
  • emissive monitor texture bypasses cockpit flash illumination
  • full return stroke brightly illuminates the cockpit interior
  • full-power lightning still leaves emissive displays unchanged
  • finished flash exactly restores the original cockpit pixels
  • preexisting nonzero light slots are preserved
  • vehicle changes clear the previous window mesh