mirror of
https://github.com/cemu-project/cemu_graphic_packs.git
synced 2025-01-09 16:29:24 +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
|
#endif
|
||||||
// This shader was automatically converted to be cross-compatible with Vulkan and OpenGL.
|
// 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
|
#ifdef VULKAN
|
||||||
layout(set = 1, binding = 2) uniform ufBlock
|
layout(set = 1, binding = 2) uniform ufBlock
|
||||||
{
|
{
|
||||||
@ -33,6 +26,16 @@ uniform vec4 uf_fragCoordScale;
|
|||||||
#else
|
#else
|
||||||
uniform vec2 uf_fragCoordScale;
|
uniform vec2 uf_fragCoordScale;
|
||||||
#endif
|
#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)
|
int clampFI32(int v)
|
||||||
{
|
{
|
||||||
if( v == 0x7FFFFFFF )
|
if( v == 0x7FFFFFFF )
|
||||||
@ -157,3 +160,4 @@ R0f.w = PV0f.x * 0.25;
|
|||||||
// export
|
// export
|
||||||
passPixelColor0 = vec4(R0f.x, R0f.y, R0f.z, R0f.w);
|
passPixelColor0 = vec4(R0f.x, R0f.y, R0f.z, R0f.w);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
@ -20,6 +20,7 @@ $UIAspectX = 1.0
|
|||||||
$UIAspectY = 1.0
|
$UIAspectY = 1.0
|
||||||
$UItransp = 1.0
|
$UItransp = 1.0
|
||||||
$anisoLevel = 1
|
$anisoLevel = 1
|
||||||
|
$AAEnable:int = 1
|
||||||
|
|
||||||
# Performance
|
# Performance
|
||||||
|
|
||||||
@ -1089,6 +1090,16 @@ category = Anisotropic Filtering
|
|||||||
name = 32x (Overkill)
|
name = 32x (Overkill)
|
||||||
$anisoLevel = 32
|
$anisoLevel = 32
|
||||||
|
|
||||||
|
[Preset]
|
||||||
|
category = Anti-Aliasing
|
||||||
|
name = Enable
|
||||||
|
$AAEnable:int = 1
|
||||||
|
|
||||||
|
[Preset]
|
||||||
|
category = Anti-Aliasing
|
||||||
|
name = Disable
|
||||||
|
$AAEnable:int = 0
|
||||||
|
|
||||||
|
|
||||||
[TextureRedefine]
|
[TextureRedefine]
|
||||||
formats = 0x31,0x32,0x33,0x34,0x35,0x431,0x432,0x433,0x434,0x435
|
formats = 0x31,0x32,0x33,0x34,0x35,0x431,0x432,0x433,0x434,0x435
|
||||||
|
Loading…
x
Reference in New Issue
Block a user