mirror of
https://github.com/cemu-project/cemu_graphic_packs.git
synced 2024-11-22 17:49:17 +01:00
306da0b802
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
81 lines
2.4 KiB
Plaintext
81 lines
2.4 KiB
Plaintext
[Definition]
|
|
titleIds = 00050000101C9300,00050000101C9400,00050000101C9500
|
|
name = Anti-Aliasing
|
|
path = "The Legend of Zelda: Breath of the Wild/Graphics/Anti-Aliasing"
|
|
description = Enables or Disables Native Botw Anti-Aliasing. Also includes an alternative FXAA implementation. Check the "Anti-Aliasing/rules.txt" file in your Botw AA graphicPack folder for info about the individual settings.
|
|
version = 4
|
|
|
|
[Preset]
|
|
name = Alternative FXAA (Nvidia's implementation)
|
|
$preset:int = 2
|
|
# Customize these 3 values
|
|
$subPix:int = 1.0
|
|
$edgeThreshold:int = 0.125
|
|
$edgeThresholdMin:int = 0.0156
|
|
|
|
# Unrelated for Nvidia FXAA
|
|
$inventorySharper:int = 0.0
|
|
$inventoryBlurrier:int = 0.0
|
|
$worldSharper:int = 0.0
|
|
$worldBlurrier:int = 0.0
|
|
|
|
[Preset]
|
|
name = Enable Native AA
|
|
$preset:int = 1
|
|
# Customize these 4 values below
|
|
$inventorySharper:int = 0.0
|
|
$inventoryBlurrier:int = 0.0
|
|
$worldSharper:int = 0.0
|
|
$worldBlurrier:int = 0.0
|
|
|
|
# Not used for Native AA
|
|
$subPix:int = 0.75 # Ignore
|
|
$edgeThreshold:int = 0.166 # Ignore
|
|
$edgeThresholdMin:int = 0.0312 # Ignore
|
|
|
|
|
|
[Preset]
|
|
name = Disable Native AA
|
|
$preset:int = 0
|
|
# Disables all anti-aliasing, doesn't have any customizations
|
|
|
|
$inventorySharper:int = 0.0
|
|
$inventoryBlurrier:int = 0.0
|
|
$worldSharper:int = 0.0
|
|
$worldBlurrier:int = 0.0
|
|
$subPix:int = 0.75
|
|
$edgeThreshold:int = 0.166
|
|
$edgeThresholdMin:int = 0.0312
|
|
|
|
|
|
# Adjust native AA implmentation - Only applies to Enabled preset
|
|
# --- keep one of the varaibles at 0 while adjusting the other one
|
|
# Sharper : Values - [0.0 - 1.0] - Recommended to Raise in increments of 0.1
|
|
# Blurrier : Values - [1.0 - 0.0] - Recommended to Lower in decrements of 0.1
|
|
|
|
# Subpix:
|
|
# Choose the amount of sub-pixel aliasing removal.
|
|
# This affects how sharp or smooth you want the image to be.
|
|
# 1.00 - upper limit (softer)
|
|
# 0.75 - default amount of filtering
|
|
# 0.50 - lower limit (sharper, less sub-pixel aliasing removal)
|
|
# 0.25 - almost off
|
|
# 0.00 - completely off
|
|
|
|
# EdgeThreshold:
|
|
# The minimum amount of local contrast required to apply algorithm.
|
|
# 0.333 - too little (faster)
|
|
# 0.250 - low quality
|
|
# 0.166 - default
|
|
# 0.125 - high quality
|
|
# 0.063 - overkill (slower)
|
|
|
|
# EdgeThresholdMin:
|
|
# Trims the algorithm from processing darks.
|
|
# 0.0833 - upper limit (default, the start of visible unfiltered edges)
|
|
# 0.0625 - high quality (faster)
|
|
# 0.0312 - visible limit (slower)
|
|
|
|
# Credit: Kiri, NAVras
|
|
# Credit: SkalFate for V3 import.
|