Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;-------------------------------------------------------------------------;
- ; Proper Shaders mod by Junior_Djjr - MixMods.com.br - Patreon.com/Djjr ;
- ; You can reload this file by typing 'PSRLD' like a cheat. ;
- ;-------------------------------------------------------------------------;
- [Base]
- EnabledMod = 1 ; Set 0 to completely disable this mod.
- LogLevel = 3 ; 1 = Only errors; 2 = Errors and warnings; 3 = All infos;
- UseD3D9Proxy = 1 ; Use a D3D9 proxy. This is required for lots of features. Only disable it if you REALLY need it (for compatibility issues).
- GenerateDepthBuffer = 1 ; Generates a Z depth buffer. This is required for lots of features. Only disable it if you REALLY need it (for compatibility issues).
- ReversedDepthBuffer = 1 ; Reverses the Z depth buffer. This dramatically improves the game's z-fighting problems (nearby faces flickering, especially at a distance). Only disable it if you REALLY need it (for compatibility issues).
- ; Pipeline is the system behind the game's rendering. Here you can choose which one to use it, or leave it at "0" to not change anything. This is what is needed for the mod's main features, such as shadows that requires "lit".
- [Pipelines]
- Map = 1 ; 0 = PC unlit; 1 = PS2 lit
- Vehicles = 2 ; 0 = PC unlit; 1 = PS2 lit; 2 = Modern
- Skins = 1 ; 0 = PC unlit; 1 = PC lit
- ; Deferred rendering is a technique widely used in modern games where the game is rendered in an optimized pass to capture the data (buffers), then the final image is built on the screen in one pass. It causes initial overhead, but allows for highly scalable optimization, as well as optimized per-pixel lighting and soft blurred shadows. This drastically changes how the game is rendered. Highly recommended to enable it if you want modern shadows, lights and all PBR features.
- [DeferredRenderer]
- Enabled = 1 ; Set 1 to enable deferred rendering.
- DeferredLights = 1 ; Set 1 to enable per-pixel lighting. The game's original lighting is very basic and outdated; the map doesn't receive it, and skins and vehicles are illuminated by vertices. This option changes how the lighting works, now rendering everything per-pixel on screen pass, like modern games. It is recommended to keep enabled when using deferred rendering.
- Intensity = 1.5 ; Lights intensity multiplier.
- RadiusMult = 1.5 ; Lights radius multiplier.
- MaxLights = 127 ; Max lights to render (up to 127).
- [VolumetricLights]
- Enabled = 1 ; Set 1 to enable volumetric fog light beams for deferred lights.
- MaxLights = 127
- Length = 9.0
- Radius = 4.0
- Intensity = 0.3
- Density = 0.5
- InnerAngle = 10.0
- OuterAngle = 60.0
- MinSourceRadius = 6.0
- MaxSourceRadius = 35.0
- ZOffset = -0.1
- [TimecycleTweaks]
- DayLightingMult = 0.8 ; Multiplies ambient and sun lighting (basically the world brightness). Lower if you use brighter timecyc (0.5 looks good on Real Linear Graphics mod).
- NightLightingMult = 0.9 ; Idem, for night.
- SunSizeMult = 0.8 ; Sun size tweak. Note that hundreds of other mods also does this, so if no effect, also find and disable it from other mods you have.
- [VehicleTweaks]
- ReflectionsIntensity = 0.7
- SpecularIntensity = 1.0
- [GlobalReflections]
- Enabled = 1 ; Do a sphere map capture of the game world, to use as realtime reflections. Especially useful for "Modern" vehicle pipeline, and also used for PBR reflections on deferred renderer. May cause FPS loss. Some features, like shadows and wind, are not currently executed on reflections, for optimization.
- Resolution = 512 ; Image resolution (power of 2).
- CaptureDistanceMult = 1.0 ; Multiplies the max draw distance to capture the reflections.
- Intensity = 0.7 ; Global reflections intensity.
- [VolumetricClouds]
- Enabled = 1 ; Set 1 to enable fly-thru volumetric clouds, based on Cloudworks by Brian Tu.
- DownscaleDiv = 4 ; Set the resolution downscale division for rendering the clouds: higher numbers make them use lower resolution - this HUGELY impacts the performance. You can use from 1 up to 16 or more. Generally 2 or 4 is enough. Try 6 or 8 if your PC is weak.
- BlurRadius = 1 ; Set 0, 1 or 2 to control how blurry the clouds will be. Useful to hide noise artifacts.
- Layers = 2 ; How many clouds layers. This is basically a graphics quality control (highly impacts the performance): 1 = bottom only (low); 2 = bottom + top (medium); 3 = bottom + mid + top (high).
- CloudsBrightness_Day = 0.2
- CloudsBrightness_Night = 0.2
- [Shadows]
- Enabled = 1 ; Set 1 to enable per-pixel dynamic shadows. Requires pipelines, and deferred renderer is highly recommended for performance and blurred shadows.
- BlurSamples = 9 ; Gaussian blur samples to blur the shadows (requires DeferredRenderer). More (up to 12) looks smoother, costing a bit of performance.
- Resolution = 4096 ; Shadow resolution (power of 2). 4096 is generally a good number, but you can try 8192 if your GPU is powerful or for "photo mode". If cascade is enabled, this is the atlas resolution (each cascade will use half).
- PCSS = 0 ; Use NVIDIA's PCSS (Percentage-Closer Soft Shadows) algorithm. Slightly more resource-intensive, but it makes the shadows a bit more realistic (the base will be sharper, softer in distant projections).
- Cascaded = 0 ; Use 4 cascades of shadows for high-resolution close-up shadows, with lower-resolution shadows at a distance. This significantly increases CPU and GPU usage, specially on this engine, therefore, don't enable it on weak or even mid-range PCs.
- SampleCountMult = 0.25 ; Multiplies the sampling count for shadows. Can't use values higher than 1.0. You can lower this value if you use DeferredRenderer, to optimize the blurred shadows. But if you set to 0 you will have no "Softness" effect.
- MaxDistance = 200 ; Shadows range distance in meters. More distant shadows consume more resources, and the quality is compromised, requiring an increase in resolution to avoid pixelated shadows. Generally, 200 or 300 are good numbers.
- MaxDistanceNightMult = 0.0 ; Multiplier for "MaxDistance" during night time. Set 0.0 to disable night shadows (useful for a FPS boost, for using deferred and volumetric lights without lagging the game at night).
- SearchObjectsRadiusMult = 1.2 ; Distance multiplier for including objects in shadow capture. This is an important fine-tuning adjustment for performance. Increasing it (e.g. 1.2) prevents shadow pops, while lowering it (e.g. 0.8) can improve performance but may cause shadow pops.
- SearchObjectsFrustumMult = 0.8 ; Idem above. For frustum culling width/height.
- SearchObjectsFarPlaneMult = 0.8 ; Idem above. For frustum culling range distance.
- Softness = 1.0 ; Multiplier to create softer or sharper shadows.
- NormalBiasMult = -2.0 ; Multiply the bias (offset) to avoid shadow acne on walls etc. This value should be as low as possible to avoid light leaking, specially near the roofs, but high enough to avoid incorrect shadows on angles. This option uses the mesh normals, which are quite poor in the vanilla game (Proper Fixes will improve this), so don't use high values.
- DepthBiasMult = 1.0 ; Same as before, but a simple depth offset.
- SlopeBiasMult = 10.0 ; Same as before, but for slope walls projection from the light.
- ;- Shadows capture exclusions
- CastStaticObjects = 1 ; Set 0 to disable shadows from static objects (such as buildings). It doesn't make much sense, but here's the option.
- CastDynamicObjects = 1 ; Set 0 to disable shadows from dynamic objects (such as lampposts). Disabling is useful to improve performance for low-end PCs. See also "CullFarSmallObjects".
- CastVehicles = 1 ; Set 0 to disable shadows from vehicles. It significantly improves performance, especially in non-optimized HD vehicles. In the future may have an option to use the internal vehicle shadow mesh instead.
- CastVehiclesLOD = 1 ; Set 0 to disable shadows from LOD vehicles (distant). It doesn't improve performance that much because the LODs are very optimized.
- CastPeds = 1 ; Set 0 to disable shadows from skinned models (player, peds).
- CastLODs = 1 ; Set 0 to disable shadows from LOD objects (distant). Generally is not a good idea.
- CullFarSmallObjects = 1 ; Set 1 to not render shadows for small objects that are far away from the camera. It improves performance with almost no noticeable visual change.
- ;- Vanilla shadows
- NoPedLowShadows = 1 ; Set 1 to disable low graphics shadows from peds.
- NoVehicleLowShadows = 0 ; Set 1 to disable low graphics shadows from vehicles.
- [SMAA]
- Enabled = 0 ; Set 1 to enable Subpixel Morphological Antialiasing, an excellent anti-aliasing algorithm to replace MSAA, because, for technical reasons, MSAA (the original game AA) is not compatible with this mod, and MSAA is also more resource-intensive and causes artifacts in high-poly models, such as HD cars.
- DebugMode = 0
- EdgeDetectionType = 1
- Preset = 2 ; 0 = Low; ... 3 = Ultra
- [CAS]
- Enabled = 1 ; Set 1 to enable AMD Contrast Adaptive Sharpening.
- Sharpness = 0.25 ; 0.0 to 1.0
- [SimulateHDR]
- Enabled = 1 ; Set 1 to enable an excellent postFX shader that simulates HDR color rendering, and applies tone mapping to it, so the game's colors are more realistic, resembling those of modern games. It also applies realistic bloom and other fine adjustments to color, contrast etc.
- DebugMode = 0
- ;- Tonemap
- Tonemap = 1 ; Tonemap to use: 0 = Timoty; 1 = ACES
- InverseTonemap = 3 ; How HDR is simulated: 0 = Off; 1 = Luma; 2 = Color; 3 = Max color brightness
- ColorBrightnessExtract = 0.5
- MiddleGreyValue = 0.230
- WhitePoint = 1.15
- HDR_Power_Day = 0.08
- HDR_Power_Night = 0.60
- ;- Eye adaptation
- EyeAdaptation = 0
- EyeAdaptation_Speed = 0.2
- EyeAdaptation_SeekRadius = 0.5
- ;- Adjustments
- Exposure_Day = 1.0
- Exposure_Night = 0.36
- Contrast_Day = 1.02
- Contrast_Night = 1.05
- Gamma = 1.4
- Saturation = 1.0
- ;- Bloom
- Bloom_Intensity_Day = 0.01
- Bloom_Intensity_Night = 0.10
- Bloom_Power = 0.5
- Bloom_Curve = 2.0
- Bloom_Spread = 1.15
- Bloom_Dither = 0.125
- Bloom_Saturation = 0.45
- Bloom_Cutoff = 0.325
- [LUTS]
- Enabled = 0 ; Set 1 to enable global color grading LUT (Look-Up Table) textures. Requires SimulateHDR. You can download LUTs or create using image editing softwares, like Photoshop.
- LutDay = LUT_DAY.png ; Texture for daytime (loaded from resources/textures/).
- LutNight = LUT_NIGHT.png ; Texture for nighttime (loaded from resources/textures/).
- [AdaptiveDOF]
- Enabled = 1 ; Set 1 to enable adaptive depth of field. Good for gameplay, but great for screenshots / photo mode.
- Intensity = 0.6 ; Final DOF blend strength
- MaxBlurPx = 2.5 ; Maximum blur radius in pixels
- FocusRange = 20.0 ; In-focus band around current adaptive focus distance
- FocusDistanceBias = 0.0 ; Adds/subtracts distance from adaptive focus
- NearBlurBoost = 0.0 ; Extra blur multiplier for near side (foreground)
- FarBlurBoost = 1.0 ; Extra blur multiplier for far side (background)
- MaxDepthToConsider = 220.0 ; Clamps sampled linear depth before CoC calculation
- DepthPowerFactor = 1.0 ; Optional depth curve shaping
- MaxDepthBlendLevel = 1.0 ; 0 = no clamp blend, 1 = full clamp blend
- OverriddenFocusDistance = 0.0 ; Manual focus distance (linear world units)
- OverriddenFocusDistanceBlendLevel = 0.0 ; 0 = full adaptive focus, 1 = full overridden focus
- FocusScreenX = 0.50 ; Focus probe X on screen (0..1)
- FocusScreenY = 0.40 ; Focus probe Y on screen (0..1)
- FocusSampleRadiusPx = 20.0 ; Radius around probe to estimate adaptive focus
- BlurNear = 0 ; 1 = allow foreground blur (usually blurs player too much)
- BlurFar = 1 ; 1 = allow background blur
- [SSAO]
- Enabled = 0 ; Set 1 to enable Screen Space Ambient Occlusion (add shading to corners, crevices etc) - deprecated.
- Sharpness = 0.3
- BlurSteps = 9
- LumLower = 0.3
- LumUpper = 0.6
- FadeStart = 0.6
- FadeEnd = 0.9
- BaseBias = 0.004
- NormalBias = 0.002
- Samples = 16
- SamplingRange = 30.0
- Darkening = 1.7
- Brightening = 1.0
- DebugMode = 0
- [HBAO]
- Enabled=1 ; Set 1 to enable Horizon-Based Ambient Occlusion (add shading to corners, crevices etc)
- DebugMode=0
- Samples=1
- SamplingRange=4.0
- Amount=1.6
- Amount_InteriorMult=0.5
- Clamp=0.1
- Attenuation=0.02
- Sharpness=0.7
- BlurSteps=7
- TexScale=1.0
- FadeStart=0.7
- FadeEnd=0.9
- [SunRays]
- Enabled = 1 ; Set 1 to enable a kind of lensflare/godray in the sun, which is occluded by the camera contents.
- quality = 1
- godraysDensity = 0.82
- godraysWeight = 0.45
- godraysDecay = 0.94
- godraysThreshold = 0.65
- haloEnabled = 1.0
- haloSize = 0.45
- [SimpleBloom]
- Enabled = 0 ; Set 1 to enable a simple version of the bloom effect (from bright surfaces). Notice that "SimulateHDR" also includes bloom, but more advanced and realistic, so don't use together.
- IntensityMaster = 3.0
- IntensityDay = 0.2
- IntensityNight = 1.0
- Threshold = 0.4
- BlurSize = 2.0
- Downscale = 2
- [SimpleSky]
- Enabled = 0 ; Replaces the game sky with a simple dithered shader, similar to the original one but much smoother. Recommended to use with map pipeline for improved horizon fog.
- [Water]
- Enabled = 1 ; Set 1 to enable water shader.
- EnableSSR = 1 ; Uses screen-space reflections, an imprecise but very performant way to have relatively good water reflections.
- EnableFakeWave = 1 ; Use fake 2D waves scrolling.
- NormalScale = 0.02
- NormalSpeed = 2.0
- NormalStrength = 3.0
- Normal1Scale = 0.2
- Normal2Scale = 0.8
- Normal1MixScale = 0.3
- Normal2MixScale = 0.4
- SpecularStrength = 2.0
- FresnelPower = 4.0
- SSRStrength = 0.5
- SSROpacity = 0.6
- SSRStep = 5.0
- SSRThickness = 0.002
- SSRDistortion = 0.08
- SSRMaxDepthDelta = 0.25
- ColorShallowR = 0.5
- ColorShallowG = 0.58
- ColorShallowB = 0.6
- ColorDeepR = 0.15
- ColorDeepG = 0.2
- ColorDeepB = 0.2
- Transparency = 0.50
- MaxVisibleDepth = 20.0
- RefractionIntensity = 1.0
- SurfaceTextureRoughness = 0.15
- SurfaceTextureScale = 0.10
- SurfaceTextureTimeScale = 0.06
- BorderColorR = 1.00
- BorderColorG = 1.00
- BorderColorB = 1.00
- BorderScale = 2.00
- FoamIntensity = 0.6
- FoamScale = 0.055
- FoamSpeed = 0.030
- FoamShoreStart = 0.03 ; Start depth delta for shoreline foam
- FoamShoreEnd = 1.85 ; End depth delta for shoreline foam fade
- FoamTintR = 0.95
- FoamTintG = 0.98
- FoamTintB = 1.00
- FoamEdgeFadePower = 5.4 ; Higher = thinner/tighter shoreline foam band
- FoamDepthFadeDistance = 1.8 ; Controls how quickly foam fades with depth from shore
- FoamWobbleStrength = 0.008 ; UV wobble amount for organic foam movement
- FoamWobbleScale = 9.0 ; Wobble noise tiling scale
- FoamNoiseContrast = 1.3 ; Foam texture contrast/definition
- WaterBlendRange = 1.5 ; Fade-out range for water tint near shore (larger = smoother)
- SSRBlendRange = 0.55 ; Range to stabilize SSR intensity near shore
- ShoreMinAlpha = 0.22 ; Minimum alpha at the shoreline (more transparent when lower)
- SkyReflectionStrength = 0.5 ; Sky reflection intensity over water (Fresnel-driven)
- SkyHorizonSharpness = 2.2 ; Horizon reflection shaping (higher = tighter band)
- SkySunGlintStrength = 0.35 ; Sun/moon glint contribution in reflected sky
- FakeWaveAmplitude = 0.5 ; Global amplitude multiplier for fake waves.
- FakeWaveLargeScale = 0.020 ; Large swell spatial frequency
- FakeWaveLargeSpeed = 0.65 ; Large swell phase speed
- FakeWaveSmallScale = 0.095 ; Small ripple spatial frequency
- FakeWaveSmallSpeed = 1.15 ; Small ripple phase speed
- FakeWaveChoppiness = 0.72 ; Crest sharpness/chop amount (0..1)
- FakeWaveNormalStrength = 1.0 ; Normal influence
- FakeWaveCrestSharpness = 1.65 ; Higher = tighter foam-crest mask
- FakeWaveCrossPatch = 0.45 ; Adds crossing wave sets for more natural sea pattern
- [UnderwaterDistortion]
- Enabled = 1 ; Set 1 to use underwater screen distortion.
- Intensity = 1.0 ; Overall blend amount
- Amplitude = 0.010 ; UV displacement amplitude
- Frequency = 25.0 ; Spatial frequency of the distortion pattern
- Speed = 1.0 ; Animation speed
- MaskNearDistance = 2.0 ; Distortion starts from this linear depth
- MaskFarDistance = 75.0 ; Distortion reaches full strength at this linear depth
- [UnderwaterExtraFeatures]
- ColorFilterStrength = 0.55 ; Color tint strength (0 = off)
- ColorFilterR = 0.85 ; Red multiplier for underwater color filter
- ColorFilterG = 1.05 ; Green multiplier for underwater color filter
- ColorFilterB = 1.20 ; Blue multiplier for underwater color filter
- FogStrength = 0.45 ; Extra underwater fog blend strength (0 = off)
- FogNearDistance = 0.1 ; Distance where extra fog starts
- FogFarDistance = 1.0 ; Distance where extra fog reaches maximum
- FogDensity = 0.20 ; Exponential fog density
- ColorFilterNightMult = 1.25 ; Multiplier for color filter strength at night
- FogNightMult = 1.35 ; Multiplier for fog strength at night
- FogTintR = 0.08 ; Extra fog tint R
- FogTintG = 0.34 ; Extra fog tint G
- FogTintB = 0.55 ; Extra fog tint B
- [WaterCaustics]
- Enabled = 1 ; Set 1 to use physics-based procedural refraction caustics
- Intensity = 0.5 ; Brightness multiplier
- Brightness = 1.8 ; Smaller = brighter, more intense rays (caustic/Image.txt)
- Contrast = 2.0 ; Difference between ray and darkness (caustic/Image.txt)
- DistanceThreshold = 0.45 ; Threshold for focus convergence (smaller = sharper/thinner caustics, larger = wider/softer)
- ChromaticAmount = 1.2 ; Strength of the chromatic aberration (rainbow) refraction split (0 = off, 1.0 = standard, >1.0 = stronger/more stylized)
- Scale = 0.4 ; World-space UV scale of waves normal map (higher = denser/smaller pattern)
- Speed = 3.0 ; Wave normal map animation speed
- DepthFade = 0.025 ; Light attenuation with water depth
- MinWaterDepth = 0.15 ; Start applying caustics only after this water depth
- MaxWaterDepth = 60.0 ; Depth range used for mask normalization
- MaxDistance = 150.0 ; Maximum camera distance for caustic visibility
- WaterDetectMaxDistance = 200.0 ; Ignore detected water farther than this from camera (filters hidden interior pools)
- TurbidityDepth = 20.0 ; Shallow depth threshold for visibility when camera is above water (match Water.MaxVisibleDepth)
- AboveWaterBoost = 1.0 ; Extra multiplier for above-water shallow caustics
- AboveWaterIntensity = 1.0 ; Extra caustics intensity only when camera is outside water
- ShallowBoost = 0.5 ; Shallow-water caustics strength boost
- TintR = 0.65
- TintG = 0.92
- TintB = 1.00
- NightMultiplier = 0.35 ; Brightness multiplier at night/moonlight
- [MuzzleFlashLights]
- Enabled = 1 ; Set 1 to add real per-pixel light to the gun shots. Use it with DeferredLights.
- Radius = 8.0
- Intensity = 1.0
- Duration = 0.075 ; Seconds until each gunflash fades out.
- Decay = 6.0 ; Exponential falloff strength. Higher values drop faster after the first peak.
- IgnoreWeaponTypes =23 ; Comma-separated weapon type IDs to skip, for example: 23,10
- Red = 1.0 ; Muzzle flash light color.
- Green = 0.6
- Blue = 0.25
- AdaptToContactBrightness = 1 ; Uses ground/contact prelight to make flashes weak in sun and stronger in shadow/night.
- BrightMultiplier = 0.05 ; Multiplier when the contact surface is bright/sunny.
- DarkMultiplier = 2.0 ; Multiplier when the contact surface is dark/shadowed.
- DarkThreshold = 0.2 ; Contact brightness treated as fully dark.
- BrightThreshold = 0.6 ; Contact brightness treated as fully bright.
- [ExplosionLights]
- Enabled = 1 ; Set 1 to add real per-pixel light to the explosions. Use it with DeferredLights.
- SmallRadius = 15.0 ; Grenade, molotov, weak rocket, mine, small. RC vehicle is disabled.
- SmallIntensity = 2.5
- MediumRadius = 30.0 ; Rocket. Object and RC vehicle are disabled.
- MediumIntensity = 5.0
- LargeRadius = 50.0 ; Car, quick car, boat, aircraft, tank fire.
- LargeIntensity = 7.5
- Duration = 0.6 ; Seconds until the explosion light fades out.
- Decay = 5.0 ; Exponential falloff strength. Higher values drop faster after the first peak.
- Red = 1.0 ; Explosion light color.
- Green = 0.5
- Blue = 0.15
- ZOffset = 1.5 ; Moves the light height from the explosion origin.
- [SoftParticles]
- Enabled = 1 ; Set 1 to enable soft particles, which fixes for example the sharp cutting of dust, smoke, and fire on the ground, so all the particle effects in the game will have a smooth feel on the surfaces.
- Softness = 0.7
- ; For testing proposes.
- [DebugBuffers]
- Enabled = 0
- Mode = 1
- [Other]
- PlayerMipMaps = 0 ; Set 1 to automatically generated mipmapping for player textures, which fixes texture aliasing specially for HD player textures such as Proper Player Retex. Disabled by default because vanilla and mods textures don't work well (there are lines on the head and face; also bugs some .txd files (even vanilla ones), which makes body parts invisible. Fixed by reimporting the textures with MagicTXD).
- ; Set 0 to disable compatibility patches and warnings, if you don't care about it, want to test it, want to fix it, if something is already fixed in the future etc.
- [Compatibility]
- SAMPGraphicRestoreWarning = 1
- SAMPDisableReversedDepthBuffer = 1
- SAMPDisableMirrors = 1
- LimitsWarning = 1
- GrinchTrainerWarning = 1
- [Debug]
- DebugTextures = 0 ; Set 1 to show debug textures to screen, for testing.
- MeshNormals = 0
- ForceWindShader = 0
Advertisement
Add Comment
Please, Sign In to add comment