Skip to content

Commit b28ad54

Browse files
authored
[Dr. Luigi] Merge anti-aliasing settings into main graphic pack (#664)
Thanks to @intra0 for merging and upgrading these packs! You might lose your graphic pack settings for Dr. Luigi after updating to this version.
1 parent ee9983d commit b28ad54

File tree

4 files changed

+53
-282
lines changed

4 files changed

+53
-282
lines changed

Enhancements/DrLuigi_!AntiAliasing/rules.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

Resolutions/DrLuigi_Resolution/9e9abde99f9510dc_000000000000001c_ps.txt

Lines changed: 0 additions & 246 deletions
This file was deleted.
Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ uniform vec4 uf_fragCoordScale;
2929
uniform float uf_alphaTestRef;
3030
uniform vec2 uf_fragCoordScale;
3131
#endif
32+
33+
#define AAENABLE $AAEnable
34+
35+
3236
TEXTURE_LAYOUT(0, 1, 0) uniform sampler2D textureUnitPS0;
3337
layout(location = 0) in vec4 passParameterSem129;
3438
layout(location = 1) in vec4 passParameterSem128;
@@ -68,22 +72,34 @@ ivec4 ARi = ivec4(0);
6872
bool predResult = true;
6973
vec3 cubeMapSTM;
7074
int cubeMapFaceId;
71-
R0i = floatBitsToInt(passParameterSem129);
75+
#if (AAENABLE == 1)
76+
R0i = floatBitsToInt(passParameterSem129);
77+
#endif
7278
R1i = floatBitsToInt(passParameterSem128);
7379
R5i.xyz = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R1i.zw)).xyz);
7480
R6i.xyz = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R1i.xy)).xyz);
7581

76-
ivec2 resolution = textureSize(textureUnitPS0,0);
77-
float iresX = float(resolution.x)/float(1280);
78-
float iresY = float(resolution.y)/float(720);
82+
#if (AAENABLE == 1)
83+
ivec2 resolution = textureSize(textureUnitPS0,0);
84+
float iresX = float(resolution.x)/float(1280);
85+
float iresY = float(resolution.y)/float(720);
86+
#endif
7987

8088
// 0
8189
backupReg0i = R0i.y;
8290
backupReg1i = R0i.x;
8391
PV0i.x = 0;
84-
PV0i.y = floatBitsToInt(intBitsToFloat(backupReg0i) / iresY);
92+
#if (AAENABLE == 1)
93+
PV0i.y = floatBitsToInt(intBitsToFloat(backupReg0i) / iresY);
94+
#else
95+
PV0i.y = floatBitsToInt(intBitsToFloat(backupReg0i) * 1.0);
96+
#endif
8597
PV0i.z = 0;
86-
R127i.w = floatBitsToInt(intBitsToFloat(backupReg1i) / iresX);
98+
#if (AAENABLE == 1)
99+
R127i.w = floatBitsToInt(intBitsToFloat(backupReg1i) / iresX);
100+
#else
101+
R127i.w = floatBitsToInt(intBitsToFloat(backupReg1i) * 1.0);
102+
#endif
87103
PV0i.w = R127i.w;
88104
R8i.w = 0x3f800000;
89105
PS0i = R8i.w;

0 commit comments

Comments
 (0)