cemu-project / cemu_graphic_packs

Community Graphic Packs for Cemu
https://cemu-project.github.io/cemu_graphic_packs/
Creative Commons Zero v1.0 Universal
1.32k stars 585 forks source link

Super sampling on negative LOD only? #200

Closed getdls closed 6 years ago

getdls commented 6 years ago

Does anyone know why super sampling works as expected when I have negative LOD, but not when using default LOD? I figured Cemus down-scaling would be the same regardless.

These two images are 4k internal resolution, and then downscaled by cemu to 2560x1440 native screen res. The left uses -16 LOD and has sweet super sampling, the default LOD looks like line reduction more or less. Both are running the same settings, 4k res pack, AA removal and brightness fix.

edit update, apparently its due to 0x01a, commited https://github.com/slashiee/cemu_graphic_packs/commit/edb182c4913d064f0cd548a1d04d93995cca2a15 edit2 looks like 8k and above doesnt scale.


[TextureRedefine] #
formats  = 0x01a
overwriteRelativeLodBias = -16 # 

ssaonnegativelod

full res sample fullsample

getdls commented 6 years ago

Looks like it works on any AA removal, just adding 0x01a. It should work with restored AA as well, but harder to demonstrate..

Tropical freeze

freezeaa

BOTW

botdn

getdls commented 6 years ago

Files for test, I'll leave them here, any AMD comments would be great before committing.

BreathOfTheWild_!AARemovalSS.zip TropicalFreeze_0AARemovalSS.zip

getdls commented 6 years ago

Looks like its the same as most pc games. Run FXAA first, strip out the sharpen pass (aa fix -sharpen) and then super sample down. Result is (arguable) better. Less shimmering, and downscaling replaces the sharpen pass with more samples.

fxandaa