Commit Graph

13 Commits

Author SHA1 Message Date
Crementif
66383aa0f5
[XCX] Fix squashed character in menus with resolution pack
Basically, the code previously would always replace the ratio calculation code for the 3d rendering and just load the upscaled width divided by the upscaled height. But the code gets passed other aspect ratios too, for example in the gear menu (and very likely other menus too).
So, even when users didn't use an ultrawide aspect ratio it would set the aspect ratio of anything that was 3d rendered to be 16:9, basically.

Comparison:
http://www.framecompare.com/image-compare/screenshotcomparison/D6WDWNNX
https://cdn.discordapp.com/attachments/292733452590120961/663586520531337223/unknown.png

I made some assumptions about the other game versions regarding the floating point register that I use to load the scale float into, which is free to use in the EU 1.0.1 version at least.
I assume that the code for all of this is would be very similar though, since the previous ratio patch only had some addresses change across versions so it's probably fine.

This actually properly fixes https://github.com/slashiee/cemu_graphic_packs/issues/334 which was closed without any proper solution. Someone reported the issue in the Cemu Discord which made me fix it, since I thought the issue was addressed already.
2020-01-06 05:58:20 +01:00
Crementif
24b9b1eb29
Update XCX packs for Vulkan (#413)
Xenoblade Chronicles X packs are now ported too! Which has, after BotW, the most shaders I think made by all of the efforts from getdls. All shaders were successfully verified and tested in-game (from what I could tell).
2020-01-01 20:10:18 +01:00
Crementif
c1b904314d
Revert "Update every graphic pack to V4"
This reverts commit 306da0b802.
2019-11-29 05:20:11 +01:00
Crementif
306da0b802
Update every graphic pack to V4
Since it's not possible to update 300+ shaders manually and automation was possible, I thought that I'd take the honor and create a script that's able to automatically convert all of the shaders to be cross-compatible with Vulkan. And change the graphic pack versions to version 4 of course.

Also, the script has some nifty testing code which compiled every shader as OpenGL and Vulkan, but for that see the details that I've written below.

**Here's the script that I've made to do all of this. No manual edits were needed:**
https://gist.github.com/Crementif/8d98a855b95f219d95298fb3db99deae
2019-11-29 04:36:05 +01:00
Crementif
077f4f8f27
Fix shader errors and shader cleanup
Since I wanted to make sure that I didn't broke the shaders after converting the shaders to Vulkan, we need to check if all the shaders weren't broken. Since we're talking about like 400 shaders checking all of them is pretty much impossible and even then, 

So, the obvious solution was to automate the checking. Not as simple as you'd think, because in 300 of our shaders we use preset variables which without replacing the value like Cemu does, will make the shader error regardless. So I also implemented some functionality that would read the preset values and types out of the rules.txt file and replace them in the shaders using that information. And then we use Khronos' glslang to compile the shaders, using both OpenGL and Vulkan.

The result was that glslang found quite a few errors in some of the shaders, which I fixed in this commit. I'm considering adding this rules.txt parsing and automated shader compilation testing to the build process.

Also, I fixed Clarity's name and description since Monochromia isn't available anymore and Xenoblade's resolution pack had a lot of weird blank lines before their #version declaration, which my converter didn't like.
2019-11-29 00:51:00 +01:00
Michael
477f71cf86 Revert "Improve performance with (almost) every game"
This reverts commit 2f5488c22e.
2019-04-01 19:54:41 -07:00
Michael
2f5488c22e Improve performance with (almost) every game 2019-03-31 22:45:26 -07:00
getdls
dd38247ef6 [XCX] Shadow scaling updated 2019-01-06 16:49:36 +01:00
getdls
383517de0b [XCX] Format removed in source as well 2019-01-06 16:01:26 +01:00
getdls
047fa1e861 [XCX] Fix skell view, FX format conversion disabled
Breaks reflections... back to ugly sky
2019-01-06 15:52:04 +01:00
getdls
9bb45c0b83 [XCX] Re-re-adds custom shaders removed in red-sky fix as enhancements
Re-adds custom shaders  removed in red-sky fix as enhancements
Initial commit is likely broken on some resolutions and Intel GPUs
To-do Detecting res from shader instead of variables and new shader
dumps
Baseline is: Works on nvidia.  Intel/AMD/3dfx/Integrated GPUs, not my
problem.
2019-01-05 18:46:46 +01:00
getdls
128e8bc7aa [XCX] Default to performance build / remove custom shaders 2019-01-04 18:31:02 +01:00
Michael
a89f270565 rename graphics to resolutions 2018-11-30 17:53:53 -08:00