Skip to content

RaphaelK12/GTA4-Improved-Soft-Shadows

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

GTA4-Improved-Soft-Shadows

This repository provides some options to improve GTA4 EFLC shadows and remove (reduce) the pixelated aspect.

In the shader folder there are some folders with shader options to use in GTA4, just choose an option and copy the file "deferred_lighting.fxc" to the game folder "GTA_IV\common\shaders\win32_30_atidx10" (at least it's the folder that game uses for my computer), together it also has the shader assembly to be used with some shader injector.

Tested on version 1.0.8.0 with Ryzen 5600G using integrated graphics.

Some options need the d3d9.dll file to work correctly (I also provided a version without), I used a modified version of ThirteenAG's dx-wraper to unlock the original resolution of the shadow map, something that doesn't affect performance, it just prevents the game to reduce the shadow resolution by half (in GTA4 the low quality shadow is 512x512 pixels, so the game generates the shadow and rescales it to 256x256 which is useless), just copy the file "d3d9.dll" to the "GTAIV.exe" game executable folder.

For dual version shaders one needs this d3d9.dll to work correctly without artifacts and the other only works without this d3d9.dll due to the difference in shadow map resolution.

Original Shadows (low, medium, high, very high)

image image image image

Some examples of the new shadows (low, medium, high):

Disk

image image image

Simple (hard) bilinear

image image image

Soft bilinear

image image image image

These new shadows are not free of artifacts (see the simple bilinear), but it is possible to see big improvements in all levels of quality (mostly low) being unnecessary very high quality for shadow (perhaps for those who play at 4k or more it will be useful I believe) .

The original low quality shadow is horrible, totally pixelated, with any of these shaders it is possible to have much higher quality without performance losses, reducing pixelation and flickering shadows.

Todo

Achieve this result without compromising performance and without producing more glitch: image image

About

This repository provides some options to improve GTA4 EFLC shadows and remove pixelated aspect.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages