raisin::RayraiWindow::EnvironmentSidecarSettings
struct · #include <rayrai/RayraiWindow.hpp>
Contents of a .rayrai_environment.json sidecar (see loadEnvironmentSidecar()).
Each value has a hasX flag that is true only when the sidecar provided it; applyEnvironmentSidecarSettings() copies only flagged values. Plain keys are read from the environment object when it exists, otherwise from the top level; the procedural_sky, sun, bloom/glow and height_fog groups may sit at either level. Values are clamped to the ranges noted below.
Public attributes
hasEnvironmentIntensity
bool hasEnvironmentIntensitySet when environment.intensity was present.
environmentIntensity
float environmentIntensityRenderQualitySettings::pbrEnvironmentIntensity (>= 0).
hasEnvironmentRotation
bool hasEnvironmentRotationSet when environment.rotation (radians) or rotation_degrees was present.
environmentRotation
float environmentRotationRenderQualitySettings::pbrEnvironmentRotation, in radians.
hasSkyTint
bool hasSkyTintSet when environment.sky_tint was present.
skyTint
glm::vec3 skyTintRenderQualitySettings::pbrEnvironmentSkyTint (>= 0).
hasHorizonTint
bool hasHorizonTintSet when environment.horizon_tint was present.
horizonTint
glm::vec3 horizonTintRenderQualitySettings::pbrEnvironmentHorizonTint (>= 0).
hasGroundTint
bool hasGroundTintSet when environment.ground_tint was present.
groundTint
glm::vec3 groundTintRenderQualitySettings::pbrEnvironmentGroundTint (>= 0).
hasHorizonStrength
bool hasHorizonStrengthSet when environment.horizon_strength was present.
horizonStrength
float horizonStrengthRenderQualitySettings::pbrEnvironmentHorizonStrength, in [0, 1].
hasBackgroundTint
bool hasBackgroundTintSet when environment.background_tint was present.
backgroundTint
glm::vec3 backgroundTintRenderQualitySettings::environmentBackgroundTint (>= 0).
hasBackgroundExposureScale
bool hasBackgroundExposureScaleSet when environment.background_exposure_scale was present.
backgroundExposureScale
float backgroundExposureScaleRenderQualitySettings::environmentBackgroundExposureScale (>= 0).
hasBackgroundMapPath
bool hasBackgroundMapPathSet when environment.background_map or visible_background_map was present.
backgroundMapPath
std::string backgroundMapPathEquirectangular .hdr shown as the visible background; relative paths resolve against the sidecar.
hasBackgroundMapExposure
bool hasBackgroundMapExposureSet when environment.background_map_exposure was present.
backgroundMapExposure
float backgroundMapExposureExposure of the visible background map (>= 0).
hasProceduralSkyEnabled
bool hasProceduralSkyEnabledSet when procedural_sky.enabled was present.
proceduralSkyEnabled
bool proceduralSkyEnabledRenderQualitySettings::proceduralSkyBackgroundEnabled.
hasProceduralSkySunStrength
bool hasProceduralSkySunStrengthSet when procedural_sky.sun_strength was present.
proceduralSkySunStrength
float proceduralSkySunStrengthRenderQualitySettings::proceduralSkySunStrength (>= 0).
hasProceduralSkySunSize
bool hasProceduralSkySunSizeSet when procedural_sky.sun_size was present.
proceduralSkySunSize
float proceduralSkySunSizeRenderQualitySettings::proceduralSkySunSize (>= 0.0001).
hasSunDirection
bool hasSunDirectionSet when sun.direction or sun.azimuth_degrees + sun.elevation_degrees was present.
sunDirection
glm::vec3 sunDirectionNormalized RenderQualitySettings::mainLightDirection (direction the light travels, world frame).
hasSunColor
bool hasSunColorSet when sun.color was present.
sunColor
glm::vec3 sunColorSun color; mainLightDiffuse becomes sunColor * sunIntensity.
hasSunIntensity
bool hasSunIntensitySet when sun.intensity was present.
sunIntensity
float sunIntensitySun intensity multiplier (>= 0).
hasExposure
bool hasExposureSet when environment.exposure was present.
exposure
float exposureRenderQualitySettings::pbrExposure (>= 0).
hasBloomEnabled
bool hasBloomEnabledSet when bloom.enabled (or glow.enabled) was present.
bloomEnabled
bool bloomEnabledRenderQualitySettings::bloomEnabled.
hasBloomThreshold
bool hasBloomThresholdSet when bloom.threshold was present.
bloomThreshold
float bloomThresholdRenderQualitySettings::bloomThreshold (>= 0).
hasBloomStrength
bool hasBloomStrengthSet when bloom.strength was present.
bloomStrength
float bloomStrengthRenderQualitySettings::bloomStrength (>= 0).
hasBloomRadius
bool hasBloomRadiusSet when bloom.radius was present.
bloomRadius
float bloomRadiusRenderQualitySettings::bloomRadius (>= 0).
hasBloomKnee
bool hasBloomKneeSet when bloom.knee was present.
bloomKnee
float bloomKneeRenderQualitySettings::bloomKnee (>= 0.001).
hasBloomQuality
bool hasBloomQualitySet when bloom.quality was present.
bloomQuality
int bloomQualityRenderQualitySettings::bloomQuality, in [1, 3].
hasBloomSourceClamp
bool hasBloomSourceClampSet when bloom.source_clamp was present.
bloomSourceClamp
float bloomSourceClampRenderQualitySettings::bloomSourceClamp (>= 0).
hasBloomAnamorphic
bool hasBloomAnamorphicSet when bloom.anamorphic was present.
bloomAnamorphic
float bloomAnamorphicRenderQualitySettings::bloomAnamorphic, in [0, 1].
hasBloomDirtStrength
bool hasBloomDirtStrengthSet when bloom.dirt_strength was present.
bloomDirtStrength
float bloomDirtStrengthRenderQualitySettings::bloomDirtStrength, in [0, 1].
hasBloomDirtScale
bool hasBloomDirtScaleSet when bloom.dirt_scale was present.
bloomDirtScale
float bloomDirtScaleRenderQualitySettings::bloomDirtScale, in [0.05, 32].
hasBloomBlendMode
bool hasBloomBlendModeSet when bloom.blend_mode (or glow_blend_mode, mode) was present.
bloomBlendMode
GlowBlendMode bloomBlendModeRenderQualitySettings::bloomBlendMode.
hasBloomMix
bool hasBloomMixSet when bloom.mix (or glow_mix) was present.
bloomMix
float bloomMixRenderQualitySettings::bloomMix, in [0, 1].
hasFogDensity
bool hasFogDensitySet when environment.fog_density was present.
fogDensity
float fogDensityRenderQualitySettings::fogDensity (>= 0).
hasHeightFogEnabled
bool hasHeightFogEnabledSet when height_fog.enabled was present.
heightFogEnabled
bool heightFogEnabledRenderQualitySettings::heightFogEnabled.
hasHeightFogDensity
bool hasHeightFogDensitySet when height_fog.density was present.
heightFogDensity
float heightFogDensityRenderQualitySettings::heightFogDensity (>= 0).
hasHeightFogBaseHeight
bool hasHeightFogBaseHeightSet when height_fog.base_height was present.
heightFogBaseHeight
float heightFogBaseHeightRenderQualitySettings::heightFogBaseHeight (world Z, metres).
hasHeightFogFalloff
bool hasHeightFogFalloffSet when height_fog.falloff was present.
heightFogFalloff
float heightFogFalloff