mirror of
https://github.com/cemu-project/cemu_graphic_packs.git
synced 2024-11-25 19:16:52 +01:00
Fix BotW Antialiasing pack always using FXAA
This commit is contained in:
parent
66f1c88f56
commit
3cbdbd3a6f
@ -9,7 +9,7 @@
|
|||||||
#define aaSharper $inventorySharper
|
#define aaSharper $inventorySharper
|
||||||
#define aaBlurrier $inventoryBlurrier
|
#define aaBlurrier $inventoryBlurrier
|
||||||
|
|
||||||
#if (preset == 0) // Disabled
|
#if (preset == 0) // Native AA Disabled
|
||||||
layout(binding = 0) uniform sampler2D textureUnitPS0;// Tex0 addr 0xf49b1800 res 1280x720x1 dim 1 tm: 4 format 0019 compSel: 0 1 2 3 mipView: 0x0 (num 0x1) sliceView: 0x0 (num 0x1) Sampler0 ClampX/Y/Z: 2 2 2 border: 1
|
layout(binding = 0) uniform sampler2D textureUnitPS0;// Tex0 addr 0xf49b1800 res 1280x720x1 dim 1 tm: 4 format 0019 compSel: 0 1 2 3 mipView: 0x0 (num 0x1) sliceView: 0x0 (num 0x1) Sampler0 ClampX/Y/Z: 2 2 2 border: 1
|
||||||
layout(location = 0) in vec4 passParameterSem2;
|
layout(location = 0) in vec4 passParameterSem2;
|
||||||
layout(location = 0) out vec4 passPixelColor0;
|
layout(location = 0) out vec4 passPixelColor0;
|
||||||
@ -20,7 +20,7 @@ passPixelColor0 = texture(textureUnitPS0, passParameterSem2.xy);
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (preset == 1) // Enabled
|
#if (preset == 1) // Native AA Enabled
|
||||||
uniform ivec4 uf_remappedPS[2];
|
uniform ivec4 uf_remappedPS[2];
|
||||||
layout(binding = 0) uniform sampler2D textureUnitPS0;// Tex0 addr 0xf49b1800 res 1280x720x1 dim 1 tm: 4 format 0019 compSel: 0 1 2 3 mipView: 0x0 (num 0x1) sliceView: 0x0 (num 0x1) Sampler0 ClampX/Y/Z: 2 2 2 border: 1
|
layout(binding = 0) uniform sampler2D textureUnitPS0;// Tex0 addr 0xf49b1800 res 1280x720x1 dim 1 tm: 4 format 0019 compSel: 0 1 2 3 mipView: 0x0 (num 0x1) sliceView: 0x0 (num 0x1) Sampler0 ClampX/Y/Z: 2 2 2 border: 1
|
||||||
layout(binding = 1) uniform sampler2D textureUnitPS1;// Tex1 addr 0x37b40000 res 1280x720x1 dim 1 tm: 4 format 0001 compSel: 0 4 4 5 mipView: 0x0 (num 0x1) sliceView: 0x0 (num 0x1) Sampler1 ClampX/Y/Z: 2 2 2 border: 1
|
layout(binding = 1) uniform sampler2D textureUnitPS1;// Tex1 addr 0x37b40000 res 1280x720x1 dim 1 tm: 4 format 0001 compSel: 0 4 4 5 mipView: 0x0 (num 0x1) sliceView: 0x0 (num 0x1) Sampler1 ClampX/Y/Z: 2 2 2 border: 1
|
||||||
|
@ -6,9 +6,9 @@
|
|||||||
// shader f14bb57cd5c9cb77 - dumped 1.15
|
// shader f14bb57cd5c9cb77 - dumped 1.15
|
||||||
// Used for: Removing/Restoring the native BotW World Anti-Aliasing Implementation
|
// Used for: Removing/Restoring the native BotW World Anti-Aliasing Implementation
|
||||||
|
|
||||||
#define preset 2
|
#define preset $preset
|
||||||
#define aaSharper 0.0
|
#define aaSharper $inventorySharper
|
||||||
#define aaBlurrier 0.0
|
#define aaBlurrier $inventoryBlurrier
|
||||||
|
|
||||||
#if (preset == 0) // Native AA Disabled
|
#if (preset == 0) // Native AA Disabled
|
||||||
layout(binding = 0) uniform sampler2D textureUnitPS0;// Tex0 addr 0xf49b1800 res 1280x720x1 dim 1 tm: 4 format 0019 compSel: 0 1 2 3 mipView: 0x0 (num 0x1) sliceView: 0x0 (num 0x1) Sampler0 ClampX/Y/Z: 2 2 2 border: 1
|
layout(binding = 0) uniform sampler2D textureUnitPS0;// Tex0 addr 0xf49b1800 res 1280x720x1 dim 1 tm: 4 format 0019 compSel: 0 1 2 3 mipView: 0x0 (num 0x1) sliceView: 0x0 (num 0x1) Sampler0 ClampX/Y/Z: 2 2 2 border: 1
|
||||||
@ -176,9 +176,9 @@ passPixelColor0 = vec4(R2f.x, R2f.y, R2f.z, R2f.w);
|
|||||||
#if (preset == 2) // FXAA
|
#if (preset == 2) // FXAA
|
||||||
/*-----------------------------settings-------------------------------------*/
|
/*-----------------------------settings-------------------------------------*/
|
||||||
|
|
||||||
#define Subpix 1.0 //[0.000 to 1.000] Choose the amount of sub-pixel aliasing removal.
|
#define Subpix $subPix //[0.000 to 1.000] Choose the amount of sub-pixel aliasing removal.
|
||||||
#define EdgeThreshold 0.0125 //[0.000 to 1.000] Edge detection threshold. The minimum amount of local contrast required to apply algorithm.
|
#define EdgeThreshold $edgeThreshold //[0.000 to 1.000] Edge detection threshold. The minimum amount of local contrast required to apply algorithm.
|
||||||
#define EdgeThresholdMin 0.0625 //[0.000 to 1.000] Darkness threshold. Trims the algorithm from processing darks.
|
#define EdgeThresholdMin $edgeThresholdMin //[0.000 to 1.000] Darkness threshold. Trims the algorithm from processing darks.
|
||||||
|
|
||||||
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
@ -45,7 +45,6 @@ $edgeThreshold = 0.0125
|
|||||||
$edgeThresholdMin = 0.0625
|
$edgeThresholdMin = 0.0625
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Adjust native AA implmentation - Only applies to Enabled preset
|
# Adjust native AA implmentation - Only applies to Enabled preset
|
||||||
# --- keep one of the varaibles at 0 while adjusting the other one
|
# --- 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
|
# Sharper : Values - [0.0 - 1.0] - Recommended to Raise in increments of 0.1
|
||||||
|
Loading…
Reference in New Issue
Block a user