cemu_graphic_packs/Enhancements/TwilightPrincessHD_Bicubic/rules.txt
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

40 lines
906 B
Plaintext

[Definition]
name = Optimized Bicubic spline resampler
titleIds = 000500001019C800,000500001019E600,000500001019E500
path = "The Legend of Zelda: Twilight Princess HD/Enhancements/Bicubic Sharpen Filters"
description = The b and c can adjust the properties of the cubic; sometimes referred to as "blurring" and "ringing" respectively.
version = 4
[OutputShader]
upscaleMagFilter = Linear
downscaleMagFilter = Linear
[Preset]
name = Catmull-Rom
$b = 0.0
$c = 0.5
[Preset]
name = Mitchell-Netravali
$b = 1/3
$c = 1/3
[Preset]
name = B-spline
$b = 1.0
$c = 0.0
[Preset]
name = Photoshop
$b = 0.0
$c = 0.75
[Preset]
name = Oversharp, w ringing artifact
$b = 0.1
$c = 0.9
# Generally b,c >= 0. the shader can't produce negative weight at 0-1 because of bilinear optimization
# But some combinations of negative b,c might have non-negative weight
# Optionally [b + 2c = 1] for numerically accurate filter