mirror of
https://github.com/cemu-project/cemu_graphic_packs.git
synced 2025-01-08 07:50:42 +01:00
Add an AA enable/disable option
inspired by dr luigi
This commit is contained in:
parent
ca40dc9a13
commit
718f317c4c
@ -18,13 +18,6 @@
|
||||
#endif
|
||||
// This shader was automatically converted to be cross-compatible with Vulkan and OpenGL.
|
||||
|
||||
// shader c14019840473ff86
|
||||
//scale boxblur fx
|
||||
|
||||
TEXTURE_LAYOUT(0, 1, 0) uniform sampler2D textureUnitPS0;
|
||||
TEXTURE_LAYOUT(1, 1, 1) uniform sampler2D textureUnitPS1;
|
||||
layout(location = 0) in vec4 passParameterSem0;
|
||||
layout(location = 0) out vec4 passPixelColor0;
|
||||
#ifdef VULKAN
|
||||
layout(set = 1, binding = 2) uniform ufBlock
|
||||
{
|
||||
@ -33,6 +26,16 @@ uniform vec4 uf_fragCoordScale;
|
||||
#else
|
||||
uniform vec2 uf_fragCoordScale;
|
||||
#endif
|
||||
|
||||
#define AAENABLE $AAEnable
|
||||
|
||||
#if (AAENABLE == 1)
|
||||
// shader c14019840473ff86
|
||||
//scale boxblur fx
|
||||
TEXTURE_LAYOUT(0, 1, 0) uniform sampler2D textureUnitPS0;
|
||||
TEXTURE_LAYOUT(1, 1, 1) uniform sampler2D textureUnitPS1;
|
||||
layout(location = 0) in vec4 passParameterSem0;
|
||||
layout(location = 0) out vec4 passPixelColor0;
|
||||
int clampFI32(int v)
|
||||
{
|
||||
if( v == 0x7FFFFFFF )
|
||||
@ -157,3 +160,4 @@ R0f.w = PV0f.x * 0.25;
|
||||
// export
|
||||
passPixelColor0 = vec4(R0f.x, R0f.y, R0f.z, R0f.w);
|
||||
}
|
||||
#endif
|
||||
|
@ -20,6 +20,7 @@ $UIAspectX = 1.0
|
||||
$UIAspectY = 1.0
|
||||
$UItransp = 1.0
|
||||
$anisoLevel = 1
|
||||
$AAEnable:int = 1
|
||||
|
||||
# Performance
|
||||
|
||||
@ -1089,6 +1090,16 @@ category = Anisotropic Filtering
|
||||
name = 32x (Overkill)
|
||||
$anisoLevel = 32
|
||||
|
||||
[Preset]
|
||||
category = Anti-Aliasing
|
||||
name = Enable
|
||||
$AAEnable:int = 1
|
||||
|
||||
[Preset]
|
||||
category = Anti-Aliasing
|
||||
name = Disable
|
||||
$AAEnable:int = 0
|
||||
|
||||
|
||||
[TextureRedefine]
|
||||
formats = 0x31,0x32,0x33,0x34,0x35,0x431,0x432,0x433,0x434,0x435
|
||||
|
Loading…
Reference in New Issue
Block a user