26 {-0.25881904510252076234889883762405f,122,0,48 },
27 {-0.08715574274765817355806427083747f,200,16,90 },
29 {0.17364817766693034885171662676931f,160,76,160 },
31 { 0.86602540378443864676372317075294f,124,146,255 },
36 { -0.09f, 60, 0, 80 },
37 { -0.06f, 112, 48, 140 },
38 { -0.02f, 160, 96, 200 },
39 { 0.02f, 112, 88, 224 },
40 { 1.00f, 154, 160, 255 }
49 char msg[199] = { 0 };
50 short r = 0,
s = 0,
t = 0;
126 if (step <= stops[0].stop) {
130 if (step >= stops[N - 1].stop) {
131 return RiseMath::Color(stops[N - 1].
r, stops[N - 1].g, stops[N - 1].b, 1.0f) / 255.0f;
135 for (; i + 1 < N; ++i) {
136 if (step < stops[i + 1].stop)
break;
139 float t = (step - stops[i].stop) / (stops[i + 1].stop - stops[i].stop);
140 float r = stops[i].r + (stops[i + 1].r - stops[i].r) *
t;
141 float g = stops[i].g + (stops[i + 1].g - stops[i].g) *
t;
142 float b = stops[i].b + (stops[i + 1].b - stops[i].b) *
t;
SCRIPT_CONTROL SCRIPT_STATE const void DWORD
const SPlotWeatherHeader & Header() const
RiseMath::Color cockpitRawAmbient
float cloudCeilingOverrideKm
void UpdateLightningSpawns(float elapsed)
RiseMath::Color dwFogFactorZenith
RiseMath::Color vehicleAmbient
void ReceiveGridLightning(short u, short v, int seed, int chainedBolts)
float alphascreenOverride
void SetCloudCeilingTargetKm(float prmCloudCeilingTargetKm)
uint64_t lightningTerrainRevision
uint32_t lightningWeatherRevision
float cloudSurfaceTargetKm
CloudBaseWeather::Store cloudBaseWeather
CloudVolume::Point ObservedWindKms() const
uint64_t cloudBaseTerrainRevision
float GetTurbulence() const
bool RefreshLightningGrid()
void SetCloudSurfaceTargetKm(float prmCloudSurfaceTargetKm)
float GetRenderVisibilityKm() const
RiseMath::Color solarHorizon
float cloudCeilingSmoothAglKm
float GetRainPrecip() const
RiseMath::Color dwFogColorZenith
bool IsSpatialFogRendering() const
void UpdateTerrainSnow(float elapsed)
void SetPrecip(float prmPrecip)
float GetWindspeedKms() const
void SetTemperatureCelsius(float prmTemperature)
static float SunAttenuation()
RiseMath::Vector4 TerrainSnowTint(int u, int v) const
void FrameMove(float fElapsedTime)
uint16_t cloudBaseRequestToken
void RequestPlotWeather(bool reset)
RiseMath::Color cockpitAmbient
void ResetCloudBaseWeather()
float cloudHorizonDistance
uint16_t snowRequestToken
TerrainSnow::Store terrainSnow
NightVisionGain::Response cockpitVision
float GetNormalizedPrecip()
void QueuePlotWeatherReset()
GridLightning::System gridLightning
RiseMath::Color sunAppearance
void SetWindDirectionRadians(float prmWinddir)
float GetWindDirectionRadians() const
RiseMath::Color betascreen
float GetCloudCeilingKm() const
uint64_t snowTerrainRevision
bool resetLocalCloudWeather
void PrepareRainCurtains(bool exteriorView)
void SetCloudCeilingOverrideKm(float value)
void SetWindspeedKms(float prmWindspeed)
bool TriggerForwardLightning()
bool plotWeatherSuspended
RiseMath::Color cockpitRawCloudLight
RiseMath::Vector4 nightVisionCloudGain
RiseMath::Color colorhorizon
ULONGLONG weatherDiagnosticUntil
CloudVolume::Point cloudSurfaceWind
uint16_t weatherRequestToken
ULONGLONG weatherNextDiagnostic
float cloudCeilingTargetKm
bool weatherRequestQueued
uint32_t snowWeatherRevision
void ReceivePlotWeather(const unsigned char *bytes, size_t length)
void UpdateSpatialFogSnapshot(bool full)
float visibilityOverrideKm
CloudVolume::Parameters cloudParameters
SpatialFogWeather::Store spatialFogWeather
float cloudSurfaceSmoothKm
void SetVisibility(float prmVisibility)
void SetPrecipOverride(float value)
void SetVisibilityOverrideKm(float value)
RiseMath::Color SampleColorGradient(float step, const ColorStop(&stops)[N])
float GetCloudCeilingMslKm() const
void UpdateCloudBaseWeather(float elapsed)
uint32_t cloudBaseWeatherRevision
float cloudTurbulenceBlend
RiseMath::Color dwFogColorHorizon
void AdvanceSpatialFog(float elapsed)
void ResetPlotWeatherConnection()
float GetVisibilityKm() const
float GetTemperatureCelsius() const
float lightningAfterimageAmbient
const PlotWeather::Store * RadarWeatherData() const
void UpdatePlotWeatherConditions()
float gammascreenOverride
bool UpdatePlotWeatherAltitude()
uint64_t rainTerrainRevision
PlotWeather::Store plotWeather
static constexpr ColorStop aStops[]
static constexpr ColorStop zStops[]