Adds AA enable/disable option

inspired by dr luigi
This commit is contained in:
intra0 2024-12-15 13:51:18 -06:00 committed by GitHub
parent df95647b65
commit c5c7464278
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 20 additions and 5 deletions

View File

@ -18,11 +18,6 @@
#endif
// This shader was automatically converted to be cross-compatible with Vulkan and OpenGL.
// shader be99d80628d31127 //AA PS
// Used for: Another vertical blur
const float resXScale = float($width)/float($gameWidth);
const float resYScale = float($height)/float($gameHeight);
#ifdef VULKAN
layout(set = 1, binding = 2) uniform ufBlock
{
@ -33,6 +28,14 @@ uniform vec4 uf_fragCoordScale;
uniform ivec4 uf_remappedPS[4];
uniform vec2 uf_fragCoordScale;
#endif
// shader be99d80628d31127 //AA PS
// Used for: Another vertical blur
const float resXScale = float($width)/float($gameWidth);
const float resYScale = float($height)/float($gameHeight);
#define AAENABLE $AAEnable
#if (AAENABLE == 1)
TEXTURE_LAYOUT(0, 1, 0) uniform sampler2D textureUnitPS0;
TEXTURE_LAYOUT(1, 1, 1) uniform sampler2D textureUnitPS1;
layout(location = 0) in vec4 passParameterSem2;
@ -216,3 +219,4 @@ activeMaskStackC[1] = activeMaskStack[0] == true && activeMaskStackC[0] == true;
// export
passPixelColor0 = vec4(R4f.x, R4f.y, R4f.z, R4f.w);
}
#endif

View File

@ -13,6 +13,7 @@ $gameWidth = 1280
$gameHeight = 720
$shadowRes = 1
$anisoLevel = 1
$AAEnable:int = 1
# Performance
@ -147,6 +148,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
#ansio
[TextureRedefine]