Skip to main content

Watch Dogs 1 — Environment Lighting Parameters

Reference for environmentlighting.lib parameters. These control time-of-day lighting, exposure, GI probes, and reflections.

Sun/Moon Lighting​

ParameterDescription
gradSunLightColorProjected sunlight color (gradient over ToD)
gradMoonLightColorAmbient moonlight color
curveSunLightIntensityProjected sunlight intensity (curve over ToD)
curveMoonLightIntensityAmbient moonlight intensity

Shadows & Reflections​

ParameterDescription
curveWorldShadowContributionToggles shadows; supports in-between values (not just on/off)
curveStaticReflectionIntensityDayStatic cubemap reflection intensity (daytime)
curveStaticReflectionIntensityNightStatic cubemap reflection intensity (nighttime)
curveDynamicReflectionGIInfluenceHow much GI affects dynamic reflections

Global Lights​

ParameterDescription
curveGlobalLightsIntensity0On/off switch for light source type 0
curveGlobalLightsIntensity1On/off switch for light source type 1
curveGlobalLightsIntensity2On/off switch for light source type 2
curveGlobalLightsIntensity3On/off switch for light source type 3

GI Probe Parameters​

ParameterDescription
curveProbeScaleGlobal GI probe scale multiplier
curveProbeSkyBounceMultiplierSky bounce light multiplier
curveProbeSkyDirectMultiplierSky direct light multiplier
curveProbeSunBounceMultiplierSun bounce light multiplier
curveProbeSkySaturationSky color saturation in GI
curveProbeLocalLightsMultiplierLocal artificial light multiplier (exterior)
curveProbeLocalLightsMultiplierInteriorLocal artificial light multiplier (interior)
curveProbeBackgroundAmbientStrengthBackground ambient contribution to probes

Exposure (Auto-Exposure)​

ParameterDescription
curveExposureValueBase exposure value
selLuminanceComputationMethodMethod for measuring scene luminance
curvePercentileLuminance percentile threshold
curveTargetLuminanceTarget average luminance
curveSpeedExposure adaptation speed
curveSpeedMultiplierExposure adaptation speed multiplier
fScreenPercentXScreen sample region X
fScreenPercentYScreen sample region Y
curveMinimumExposureValueMinimum exposure clamp
curveMaximumExposureValueMaximum exposure clamp

Luminance Computation Methods​

ValueMethodNotes
0Histogram thresholdUsed in 2013 beta builds
1Histogram averageUsed in 360/PS3 retail
2(unused)—
3GPU averageNext-gen (PC/PS4/XB1)

Dunia Legacy Parameters (Unused in WD1)​

These carried over from Far Cry 3 (Dunia engine) but are not actively used:

  • gradPaintedGIColor, curvePaintedGIIntensity
  • curveAmbientDirectionalContrast
  • gradAmbientSkyColor, curveAmbientSkyIntensity
  • gradAmbientGroundColor, curveAmbientGroundIntensity
  • gradAmbientSunFrontColor, curveAmbientSunFrontIntensity
  • gradAmbientSunBackColor, curveAmbientSunBackIntensity
  • curveRimLightIntensity
  • AmbientOcclusion

Cross-References​