summaryrefslogtreecommitdiff
path: root/Shaders/sslr.diff
blob: 041d01c0cdf74aa015ab18eaee4f9e8d54ea77c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/sslr.asm	2026-03-16 15:19:48.982185265 -0400
+++ b/sslr.asm	2026-03-16 15:19:28.862978198 -0400
@@ -246,6 +90,12 @@
   mov [precise(zw)] r0.zw, l(0,0,0,0)
   ld_indexable [precise(yw)](texture2d)(float,float,float,float) r1.xyzw, r0.xyww, t4.xyzw
   ld_indexable [precise(xyw)](texture2d)(float,float,float,float) r2.xyzw, r0.xyww, t5.xyzw
+  ieq r4.x, r2.w, l(0x3d60e0e1)
+  and r4.x, r4.x, l(0x00404040)
+  xor r2.w, r2.w, r4.x
+  ieq r4.x, r2.w, l(0x3cc0c0c1)
+  and r4.x, r4.x, l(0x00c04040)
+  xor r2.w, r2.w, r4.x
   ld_indexable [precise(xyz)](texture2d)(float,float,float,float) r3.xyz, r0.xyww, t6.xyzw
   ld_indexable [precise(w)](texture2d)(uint,uint,uint,uint) r3.w, r0.xyww, t7.yzwx
   mul [precise(w)] r1.w, r1.w, l(255.000000)