Parallellines0451 / GTAIV.EFLC.FusionShaders

Various shader fixes and improvements for GTA IV & EFLC.
GNU General Public License v3.0
143 stars 4 forks source link

Possible fix for lamppost double shadows / paraboloid distortion? #40

Closed RecklessGlue540 closed 4 months ago

RecklessGlue540 commented 4 months ago

I think I found some interesting articles that might help with fixing the paraboloid distortions Night Shadows are plagued with, without the need of tessellation, by shifting some of the vertex shader's work to the pixel shader, though something like that may also require code so I don't know if it's in plans...

http://www.gamedevelop.eu/en/tutorials/dual-paraboloid-shadow-mapping.htm http://www.klayge.org/material/3_12/DPSM/DPSM.PDF

image

image

Reading the second one actually seems to be making a little bit of sense tbh...

Parallellines0451 commented 4 months ago

Can't be viably done through shaders only. CPU code editing is needed. Besides, technically these shadows weren't meant to be used everywhere. PC lamppost shadowcasting is not intended behavior by the original developers. Just use console lampposts.