raisin::EnvironmentSidecarSettings
struct · #include <rayrai/ReflectionProbe.hpp>
Optional environment/lighting overrides from a scene's environment sidecar JSON (<scene>.rayrai_environment.json, see RayraiWindow::loadEnvironmentSidecar()).
Each value is applied only when its matching has* flag is true. Most values map onto the RenderQualitySettings field with the corresponding name (environmentIntensity -> pbrEnvironmentIntensity, skyTint -> pbrEnvironmentSkyTint, sunDirection -> mainLightDirection, exposure -> pbrExposure, bloom*, fogDensity, heightFog*, ...). sunColor*sunIntensity becomes mainLightDiffuse, and backgroundMapPath loads an HDR equirectangular image as the visible background cubemap.
Public attributes
hasEnvironmentIntensity
bool hasEnvironmentIntensityTrue when the sidecar sets environmentIntensity.
environmentIntensity
float environmentIntensityApplied to RenderQualitySettings::pbrEnvironmentIntensity.
hasEnvironmentRotation
bool hasEnvironmentRotationTrue when the sidecar sets environmentRotation.
environmentRotation
float environmentRotationRadians about world +Z (the JSON may give "rotation_degrees").
hasSkyTint
bool hasSkyTintTrue when the sidecar sets skyTint.
skyTint
glm::vec3 skyTintApplied to RenderQualitySettings::pbrEnvironmentSkyTint.
hasHorizonTint
bool hasHorizonTintTrue when the sidecar sets horizonTint.
horizonTint
glm::vec3 horizonTintApplied to RenderQualitySettings::pbrEnvironmentHorizonTint.
hasGroundTint
bool hasGroundTintTrue when the sidecar sets groundTint.
groundTint
glm::vec3 groundTintApplied to RenderQualitySettings::pbrEnvironmentGroundTint.
hasHorizonStrength
bool hasHorizonStrengthTrue when the sidecar sets horizonStrength.
horizonStrength
float horizonStrengthApplied to RenderQualitySettings::pbrEnvironmentHorizonStrength.
hasBackgroundTint
bool hasBackgroundTintTrue when the sidecar sets backgroundTint.
backgroundTint
glm::vec3 backgroundTintApplied to RenderQualitySettings::environmentBackgroundTint.
hasBackgroundExposureScale
bool hasBackgroundExposureScaleTrue when the sidecar sets backgroundExposureScale.
backgroundExposureScale
float backgroundExposureScaleApplied to RenderQualitySettings::environmentBackgroundExposureScale.
hasBackgroundMapPath
bool hasBackgroundMapPathTrue when the sidecar sets backgroundMapPath.
backgroundMapPath
std::string backgroundMapPathHDR equirectangular image loaded as the visible background.
hasBackgroundMapExposure
bool hasBackgroundMapExposureTrue when the sidecar sets backgroundMapExposure.
backgroundMapExposure
float backgroundMapExposureExposure for the visible background map.
hasProceduralSkyEnabled
bool hasProceduralSkyEnabledTrue when the sidecar sets proceduralSkyEnabled.
proceduralSkyEnabled
bool proceduralSkyEnabledApplied to RenderQualitySettings::proceduralSkyBackgroundEnabled.
hasProceduralSkySunStrength
bool hasProceduralSkySunStrengthTrue when the sidecar sets proceduralSkySunStrength.
proceduralSkySunStrength
float proceduralSkySunStrengthApplied to RenderQualitySettings::proceduralSkySunStrength.
hasProceduralSkySunSize
bool hasProceduralSkySunSizeTrue when the sidecar sets proceduralSkySunSize.
proceduralSkySunSize
float proceduralSkySunSizeApplied to RenderQualitySettings::proceduralSkySunSize (radians).
hasSunDirection
bool hasSunDirectionTrue when the sidecar sets sunDirection.
sunDirection
glm::vec3 sunDirectionDirection the sunlight travels (toward the ground).
hasSunColor
bool hasSunColorTrue when the sidecar sets sunColor.
sunColor
glm::vec3 sunColorSun color; mainLightDiffuse = sunColor * sunIntensity.
hasSunIntensity
bool hasSunIntensityTrue when the sidecar sets sunIntensity.
sunIntensity
float sunIntensitySun intensity; mainLightDiffuse = sunColor * sunIntensity.
hasExposure
bool hasExposureTrue when the sidecar sets exposure.
exposure
float exposureApplied to RenderQualitySettings::pbrExposure.
hasBloomEnabled
bool hasBloomEnabledTrue when the sidecar sets bloomEnabled.
bloomEnabled
bool bloomEnabledApplied to RenderQualitySettings::bloomEnabled.
hasBloomThreshold
bool hasBloomThresholdTrue when the sidecar sets bloomThreshold.
bloomThreshold
float bloomThresholdApplied to RenderQualitySettings::bloomThreshold.
hasBloomStrength
bool hasBloomStrengthTrue when the sidecar sets bloomStrength.
bloomStrength
float bloomStrengthApplied to RenderQualitySettings::bloomStrength.
hasBloomRadius
bool hasBloomRadiusTrue when the sidecar sets bloomRadius.
bloomRadius
float bloomRadiusApplied to RenderQualitySettings::bloomRadius.
hasBloomKnee
bool hasBloomKneeTrue when the sidecar sets bloomKnee.
bloomKnee
float bloomKneeApplied to RenderQualitySettings::bloomKnee.
hasBloomQuality
bool hasBloomQualityTrue when the sidecar sets bloomQuality.
bloomQuality
int bloomQualityApplied to RenderQualitySettings::bloomQuality.
hasBloomSourceClamp
bool hasBloomSourceClampTrue when the sidecar sets bloomSourceClamp.
bloomSourceClamp
float bloomSourceClampApplied to RenderQualitySettings::bloomSourceClamp.
hasBloomAnamorphic
bool hasBloomAnamorphicTrue when the sidecar sets bloomAnamorphic.
bloomAnamorphic
float bloomAnamorphicApplied to RenderQualitySettings::bloomAnamorphic.
hasBloomDirtStrength
bool hasBloomDirtStrengthTrue when the sidecar sets bloomDirtStrength.
bloomDirtStrength
float bloomDirtStrengthApplied to RenderQualitySettings::bloomDirtStrength.
hasBloomDirtScale
bool hasBloomDirtScaleTrue when the sidecar sets bloomDirtScale.
bloomDirtScale
float bloomDirtScaleApplied to RenderQualitySettings::bloomDirtScale.
hasBloomBlendMode
bool hasBloomBlendModeTrue when the sidecar sets bloomBlendMode.
bloomBlendMode
GlowBlendMode bloomBlendModeApplied to RenderQualitySettings::bloomBlendMode.
hasBloomMix
bool hasBloomMixTrue when the sidecar sets bloomMix.
bloomMix
float bloomMixApplied to RenderQualitySettings::bloomMix.
hasFogDensity
bool hasFogDensityTrue when the sidecar sets fogDensity.
fogDensity
float fogDensityApplied to RenderQualitySettings::fogDensity.
hasHeightFogEnabled
bool hasHeightFogEnabledTrue when the sidecar sets heightFogEnabled.
heightFogEnabled
bool heightFogEnabledApplied to RenderQualitySettings::heightFogEnabled.
hasHeightFogDensity
bool hasHeightFogDensityTrue when the sidecar sets heightFogDensity.
heightFogDensity
float heightFogDensityApplied to RenderQualitySettings::heightFogDensity.
hasHeightFogBaseHeight
bool hasHeightFogBaseHeightTrue when the sidecar sets heightFogBaseHeight.
heightFogBaseHeight
float heightFogBaseHeightApplied to RenderQualitySettings::heightFogBaseHeight.
hasHeightFogFalloff
bool hasHeightFogFalloffTrue when the sidecar sets heightFogFalloff.
heightFogFalloff
float heightFogFalloffApplied to RenderQualitySettings::heightFogFalloff.