-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDarkModeFix.ini
More file actions
32 lines (26 loc) · 984 Bytes
/
DarkModeFix.ini
File metadata and controls
32 lines (26 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[ShaderRegexLoadingScreenDarkMode]
shader_model = ps_4_0 ps_5_0
temps = stereo tmp1
[ShaderRegexLoadingScreenDarkMode.Pattern]
dcl_temps 1\n
sample_indexable\(texture2d\)\(float,float,float,float\) r0\.xyzw, v2\.xyxx, t0\.xyzw, s0\n
add r0\.xyzw, r0\.xyzw, cb0\[(?P<cb0_index>[0-9]+)\]\.xyzw\n
mul o0\.xyzw, r0\.xyzw, v1\.xyzw\n
ret\n
[ShaderRegexLoadingScreenDarkMode.Pattern.Replace]
dcl_temps 5\n
ld_indexable(texture1d)(float,float,float,float) r0.xyxw, l(151, 0, 0, 0), t120.xyzw\n
ge r1.x, r0.x, l(0.5)\n
lt r2.x, r0.y, l(0.5)\n
and r4.x, r1.x, r2.x\n
if_nz r4.x\n
mov o0.xyzw, l(0,0,0,0)\n
ret\n
endif\n
movc r3.xyzw, r1.xxxx, l(1.0,1.0,1.0,1.0), v1.xyzw\n
sample_indexable(texture2d)(float,float,float,float) r0.xyzw, v2.xyxx, t0.xyzw, s0\n
add r0.xyzw, r0.xyzw, cb0[${cb0_index}].xyzw\n
mul o0.xyzw, r0.xyzw, r3.xyzw\n
ret\n
[ShaderRegexLoadingScreenDarkMode.InsertDeclarations]
dcl_resource_texture1d (float,float,float,float) t120