-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
ORFix.ini
201 lines (173 loc) · 5.46 KB
/
ORFix.ini
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
namespace = global\ORFix
; ORFix.ini Version 0.2.91
; - Adding TexFx sync and comments
; - Adding LQ shader for PS5(aka natlan characters)
; - Update gaming fix hash
; Check latest version at: http://github.com/LeoTorreZ/LeoTools/blob/main/releases/ORFix.ini
; Global 3.0+ and 5.0+ character reflection/outline color fix
; Anime Game Modding Group discord server (https://discord.gg/agmg)
; silentnightsound, modder4869, leotorrez, takoyaki.desu, hummyr, sinsofseven
; To use this reflection/outline color shader fix:
; 1) Place this ini into 3Dmigoto Mods folder, and under the BufferValues folder if available
; 2) At the bottom of each modded [TextureOverride {Character} {ObjectPart}], type the following command:
; run = CommandList\global\ORFix\ORFix
; Example --------------------------------------------------------------------------
; [TextureOverrideLaylaHead]
; hash = 8ec3x0d8
; match_first_index = 0
; ib = ResourceLaylaHeadIB
; ps-t0 = ResourceLaylaHeadDiffuse
; ps-t1 = ResourceLaylaHeadLightMap
; run = CommandList\global\ORFix\ORFix
;
; Full guide: https://github.com/leotorrez/LeoTools/blob/main/guides/ORFixGuide.md
[Constants]
; Left for backwards compatibility, it supresses errors
global $active = 0
; Commandlists ---------------------------------------
[CommandListORFix]
local $ps = ps
local $vs = vs
if $vs == 037730.3
run = CommandListReference
ps-t0 = ref ResourceRefDiffuse
ps-t1 = ref ResourcePST1
ps-t2 = ref ResourcePST2
run = CommandListClear
; Character Reflection/Outline Fix
endif
if $ps == 037730.05
; Gaming fix
run = CommandListReferenceGaming
run = CommandListFix
run = CommandListClear
elif $ps == 037730.0 || $ps == 037730.1
; Character Reflection/Outline Fix
run = CommandListReference
run = CommandListFix
run = CommandListClear
endif
[CommandListNoDraw]
if ps == 037730.0 || ps == 037730.1
run = CommandListReference
run = CommandListFix
endif
[CommandListNoDrawClear]
if ps == 037730.0 || ps == 037730.1
run = CommandListClear
endif
; CommandList Utilities -------------------------------------
[CommandListReferenceGaming]
ResourceRefNormalMap = ref ps-t0
ResourceRefDiffuse = ref ps-t2
ResourceRefLightmap = ref ps-t3
[CommandListReference]
ResourceRefNormalMap = ref ps-t0
ResourceRefDiffuse = ref ps-t1
ResourceRefLightmap = ref ps-t2
[CommandListFix]
ps-t0 = ref ResourceRefDiffuse unless_null
ps-t1 = ref ResourceRefLightmap unless_null
[CommandListClear]
clear = ResourceRefNormalMap
clear = ResourceRefDiffuse
clear = ResourceRefLightmap
ResourceRefNormalMap = null
ResourceRefDiffuse = null
ResourceRefLightmap = null
local $x70 = x70
x70 = ps
post x70 = $x70
; Shaders --------------------------------------------
; 037730.0 -> Character's Outline PS
; 037730.05 -> Gaming's Outline PS
; 037730.1 -> Character's Reflection PS
; 037730.3 -> Character's Flamy Outline PS (Natlan Characters)
[ShaderOverrideReflectionPSGaming]
hash = e8b0b361b1593e62
allow_duplicate_hash = overrule
filter_index = 037730.05
[ShaderOverrideOutlinePSGaming]
hash = 8d1c5b23b690be44
allow_duplicate_hash = overrule
filter_index = 037730.05
[ShaderOverrideOutlinePS5]
; Outline for v5.0+
hash = 3b7c6b03b9285fbd
allow_duplicate_hash = overrule
filter_index = 037730.0
[ShaderOverrideOutlinePS5LQ]
; Outline for v5.0+ LQ
hash = 4cbb4c7f2c1d9910
allow_duplicate_hash = overrule
filter_index = 037730.0
[ShaderOverrideOutlinePS3]
; Outline for v3.0 - 4.8
hash = 1d43c1b95ef44152
allow_duplicate_hash = overrule
filter_index = 037730.0
[ShaderOverrideOutlinePS3LQ]
; Outline for v3.0 - 4.8 LQ
hash = 599092b725a44f2a
allow_duplicate_hash = overrule
filter_index = 037730.0
[ShaderOverrideOutlineNatlanActiveFXPS]
; Outline VS Shader when the FX is active
hash = 977da5a102976c09
allow_duplicate_hash = overrule
filter_index = 037730.0
[ShaderOverrideNatlanOutlineVS]
; When skipping this, the "flammy" outline disapears
hash = 41299170b7e85eb5
allow_duplicate_hash = overrule
filter_index = 037730.3
; We grab them in the shader call because it runs before the mod's call CL-ORFix
ResourcePST1 = ref ps-t1
ResourcePST2 = ref ps-t2
[ShaderOverrideNatlanDiffuseFXVS]
; This hash draws the colored tattoos over Body
hash = 901032b8a4cdf787
allow_duplicate_hash = overrule
if $costume_mods
; checktextureoverride = ps-t0
; checktextureoverride = ps-t1
; checktextureoverride = ps-t2
; checktextureoverride = ps-t3
checktextureoverride = ps-t4
checktextureoverride = ps-t5
checktextureoverride = ps-t6
checktextureoverride = ps-t7
checktextureoverride = ps-t8
checktextureoverride = ps-t9
checktextureoverride = ps-t10
endif
[ShaderOverrideNatlanFaceDiffuseFXVS]
; This hash draws the colored tattoos over Face
hash = 6324fa1eae4bd25c
allow_duplicate_hash = overrule
if $costume_mods
; checktextureoverride = ps-t0
; checktextureoverride = ps-t1
; checktextureoverride = ps-t2
; checktextureoverride = ps-t3
checktextureoverride = ps-t4
checktextureoverride = ps-t5
checktextureoverride = ps-t6
checktextureoverride = ps-t7
checktextureoverride = ps-t8
checktextureoverride = ps-t9
checktextureoverride = ps-t10
endif
[ShaderRegexCharReflection]
shader_model = ps_5_0
filter_index = 037730.1
[ShaderRegexCharReflection.pattern]
mul r\d+\.\w+, r\d+\.\w+,[^.]*\.\w+\n
mad o\d+\.\w+, r\d+\.\w+, cb\d+\[\d+\]\.\w+, r\d+\.\w+\n
mov o\d+\.\w+, l\(\d+\.\d+\)\n
[ResourceRefNormalMap]
[ResourceRefDiffuse]
[ResourceRefLightmap]
[ResourcePST0]
[ResourcePST1]
[ResourcePST2]