raisin::WeatherDiagnostics
struct · #include <rayrai/Weather.hpp>
Resolved weather state for the current frame (RayraiWindow::weatherDiagnostics()).
Echoes the WeatherSettings inputs and reports the values the renderer derives from them. Strengths are normalized [0, 1] unless noted.
Public attributes
enabled
bool enabledviewerEffectsActive
bool viewerEffectsActiveWeather effects are drawn in the viewer (same as enabled).
affectsSensors
bool affectsSensorsWeatherSettings::affectSensors.
preset
WeatherPreset presetquality
WeatherQuality qualityseed
uint32_t seedtimeOfDayHours
float timeOfDayHoursWeatherSettings::timeOfDayHours.
latitude
float latitudeWeatherSettings::latitude, degrees.
longitude
float longitudeWeatherSettings::longitude, degrees.
automaticUtcOffset
bool automaticUtcOffsetWeatherSettings::automaticUtcOffset.
utcOffsetHours
float utcOffsetHoursWeatherSettings::utcOffsetHours.
resolvedUtcOffsetHours
float resolvedUtcOffsetHoursOffset actually used: longitude / 15 when automatic.
year
int yearmonth
int monthday
int daysolarAzimuthDegrees
float solarAzimuthDegreesResolved solar azimuth, degrees.
solarElevationDegrees
float solarElevationDegreesResolved solar elevation, degrees.
sunDirection
glm::vec3 sunDirectionDirection sunlight travels (toward the ground).
sunColor
glm::vec3 sunColorSun color after turbidity and cloud cover.
sunIntensity
float sunIntensityDirect sun strength after daylight, clouds and precipitation (0 when disabled).
moonLightActive
bool moonLightActiveNight: the moon drives the main light.
moonDirection
glm::vec3 moonDirectionDirection moonlight travels.
moonIntensity
float moonIntensityMoonlight strength.
skyExposure
float skyExposureSky brightness factor used for ambient, environment and exposure, [0.04, 1.35].
cloudCoverage
float cloudCoverageWeatherSettings::cloudCoverage.
cloudDensity
float cloudDensityWeatherSettings::cloudDensity.
cloudLayerActive
bool cloudLayerActiveCloud layer drawn (coverage and density > 0.015, quality above Low).
cloudShadowActive
bool cloudShadowActiveCloud shadows projected (High/Ultra with a non-zero strength).
cloudAltitudeMeters
float cloudAltitudeMetersWeatherSettings::cloudAltitudeMeters.
cloudThicknessMeters
float cloudThicknessMetersWeatherSettings::cloudThicknessMeters.
cloudShadowStrength
float cloudShadowStrengthEffective cloud-shadow strength (scaled by coverage).
cloudScale
float cloudScalecloudOffset
glm::vec2 cloudOffsetCurrent cloud drift offset.
fogDensity
float fogDensityvisibilityMeters
float visibilityMetersWeatherSettings::visibilityMeters.
heightFogActive
bool heightFogActiveWeather height fog is on (fog density > 0.001 or visibility < 5 km).
volumetricFogActive
bool volumetricFogActiveWeather volumetric fog is on (Ultra quality and enough fog).
heightFogDensity
float heightFogDensityEffective height-fog density, metres^-1.
heightFogBaseHeight
float heightFogBaseHeightHeight-fog base height, metres.
heightFogFalloff
float heightFogFalloffHeight-fog falloff, 1/metres.
fogColor
glm::vec3 fogColorfogAnisotropy
float fogAnisotropyWeatherSettings::fogAnisotropy.
visibilityTransmittance100m
float visibilityTransmittance100mexp(-heightFogDensity * 100 m).
visibilityTransmittance1km
float visibilityTransmittance1kmexp(-heightFogDensity * 1000 m).
localFogVolumeBudget
size_t localFogVolumeBudgetkMaxLocalFogVolumes.
localFogVolumeCount
size_t localFogVolumeCountRegistered local fog volumes.
localFogPositiveDensity
float localFogPositiveDensitySum of positive local fog densities.
localFogNegativeDensity
float localFogNegativeDensitySum of negative (clearing) local fog densities.
precipitationRate
float precipitationRateWeatherSettings::precipitationRate.
effectivePrecipitationRate
float effectivePrecipitationRateprecipitationRate * (1 - rainOcclusionStrength).
rainOcclusionStrength
float rainOcclusionStrengthWeatherSettings::rainOcclusionStrength.
wetness
float wetnessResolved surface wetness after occlusion and snow melt.
wetnessAccumulationActive
bool wetnessAccumulationActiveWetness accumulates over time.
accumulatedWetness
float accumulatedWetnessCurrent accumulated wetness (or WeatherSettings::wetness when not accumulating).
wetnessAccumulationRate
float wetnessAccumulationRateWeatherSettings::wetnessAccumulationRate.
wetnessDryingRate
float wetnessDryingRateWeatherSettings::wetnessDryingRate.
wetMaterialActive
bool wetMaterialActiveWet-material shading applied.
wetMaterialStrength
float wetMaterialStrengthWet-material strength.
puddleStrength
float puddleStrengthPuddle strength (wet strength above 0.42).
rainRippleStrength
float rainRippleStrengthRain-ripple strength on puddles.
wetAlbedoDarkening
float wetAlbedoDarkeningAlbedo darkening applied to wet surfaces.
wetRoughnessScale
float wetRoughnessScaleRoughness multiplier for wet surfaces.
wetSpecularBoost
float wetSpecularBoostSpecular boost for wet surfaces.
snowCoverage
float snowCoverageWeatherSettings::snowCoverage.
snowMeltActive
bool snowMeltActiveSnow is melting during a transition away from snow.
snowMeltFactor
float snowMeltFactorMelt progress.
snowMeltWetnessBoost
float snowMeltWetnessBoostExtra wetness added by melting snow.
snowMaterialActive
bool snowMaterialActiveSnow-material shading applied.
snowMaterialStrength
float snowMaterialStrengthSnow-material strength.
snowAccumulationStrength
float snowAccumulationStrengthSnow accumulation strength.
snowAlbedoBlend
float snowAlbedoBlendBlend toward snow albedo.
snowRoughness
float snowRoughnessRoughness of snow-covered surfaces.
snowMetallicScale
float snowMetallicScaleMetallic multiplier under snow.
snowNormalSoftening
float snowNormalSofteningNormal-map softening under snow.
lightningRate
float lightningRateWeatherSettings::lightningRate, strikes per minute.
lightningActive
bool lightningActiveA strike is currently flashing.
lightningEventIndex
uint32_t lightningEventIndexIndex of the current/most recent strike slot.
lightningEventTimeSeconds
float lightningEventTimeSecondsStart time of that strike, seconds of the day.
lightningNextEventSeconds
float lightningNextEventSecondsSeconds until the next strike slot.
lightningEventPhaseSeconds
float lightningEventPhaseSecondsSeconds since the current strike started.
lightningEventDurationSeconds
float lightningEventDurationSecondsFlash duration, seconds.
lightningIntensity
float lightningIntensityCurrent flash intensity.
lightningExposureBoost
float lightningExposureBoostExposure added during the flash.
lightningSkyFlash
float lightningSkyFlashSky brightening during the flash.
lightningDirection
glm::vec3 lightningDirectionDirection the flash light travels (used as the main light while active).
lightningColor
glm::vec3 lightningColorFlash color.
lightningPointLightActive
bool lightningPointLightActiveThe local lightning point light is active.
lightningPointLightPosition
glm::vec3 lightningPointLightPositionIts world position, metres.
lightningPointLightColor
glm::vec3 lightningPointLightColorIts color.
lightningPointLightRadius
float lightningPointLightRadiusIts radius, metres.
lightningPointLightIntensity
float lightningPointLightIntensityIts current intensity.
thunderDelaySeconds
float thunderDelaySecondsDelay from flash to thunder, seconds.
precipitationParticlesActive
bool precipitationParticlesActiveRain or snow particles are drawn.
snowParticlesActive
bool snowParticlesActiveSnow particles are drawn.
rainParticlesActive
bool rainParticlesActiveRain particles are drawn.
precipitationParticleBudget
size_t precipitationParticleBudgetParticle budget from rate and quality.
precipitationParticlesRendered
size_t precipitationParticlesRenderedParticles drawn per frame (capped by quality).
precipitationParticleSizePixels
float precipitationParticleSizePixelsParticle size, pixels.
precipitationParticleDepthMeters
float precipitationParticleDepthMetersDepth of the camera-relative particle volume, metres.
precipitationParticleAlpha
float precipitationParticleAlphaParticle opacity.
precipitationParticleColor
glm::vec3 precipitationParticleColorParticle color.
rainSplashParticlesActive
bool rainSplashParticlesActiveAlways false: rain splashes are disabled (kept for schema stability).
rainSplashParticlesRendered
size_t rainSplashParticlesRenderedAlways 0.
rainSplashParticleSizePixels
float rainSplashParticleSizePixelsAlways 0.
rainSplashParticleAlpha
float rainSplashParticleAlphaAlways 0.
rainSplashParticleColor
glm::vec3 rainSplashParticleColorUnused splash color.
lensDropletsActive
bool lensDropletsActiveLens droplets are drawn.
lensDropletsRendered
size_t lensDropletsRenderedDroplets drawn.
lensDropletStrength
float lensDropletStrengthWeatherSettings::lensDropletStrength.
lensDropletMaxSizePixels
float lensDropletMaxSizePixelsLargest droplet size, pixels.
lensDropletAlpha
float lensDropletAlphaDroplet opacity.
weatherTextureBytes
size_t weatherTextureBytesCurrently always 0.
transitionActive
bool transitionActiveA transitionWeather() blend is in progress.
transitionAlpha
float transitionAlphaTransition progress, [0, 1].
skyEnvironmentValid
bool skyEnvironmentValidA generated weather sky environment exists (see WeatherSkyEnvironment).
skyEnvironmentMap
unsigned int skyEnvironmentMapWeatherSkyEnvironment::environmentMap.
skyIrradianceMap
unsigned int skyIrradianceMapWeatherSkyEnvironment::irradianceMap.
skyEnvironmentFaceSize
int skyEnvironmentFaceSizeWeatherSkyEnvironment::environmentFaceSize.
skyIrradianceFaceSize
int skyIrradianceFaceSizeWeatherSkyEnvironment::irradianceFaceSize.
skyEnvironmentGenerationCount
uint64_t skyEnvironmentGenerationCount