; Merged Mod: .\DoriModf0000\Dori.ini, .\DoriModf0001\Dori.ini, .\DoriModf0002\Dori.ini, .\DoriModf0003\Dori.ini, .\DoriModf0004\Dori.ini, .\DoriModf0005\Dori.ini, .\DoriModf0006\Dori.ini, .\DoriModf0007\Dori.ini, .\DoriModf0008\Dori.ini, .\DoriModf0009\Dori.ini, .\DoriModf0010\Dori.ini, .\DoriModf0011\Dori.ini, .\DoriModf0012\Dori.ini, .\DoriModf0013\Dori.ini, .\DoriModf0014\Dori.ini, .\DoriModf0015\Dori.ini, .\DoriModf0016\Dori.ini, .\DoriModf0017\Dori.ini, .\DoriModf0018\Dori.ini, .\DoriModf0019\Dori.ini, .\DoriModf0020\Dori.ini, .\DoriModf0021\Dori.ini

; Constants ---------------------------

[Constants]
global persist $swapvar = 0
global $ActiveCharacter = 0

[KeySwap]
condition = $ActiveCharacter == 1
key = t
back = r
type = cycle
$swapvar = 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21

[Present]
post $ActiveCharacter = 0

; Overrides ---------------------------

[TextureOverrideDoriPosition]
hash = 2a2a63ab
run = CommandListDoriPosition
$ActiveCharacter = 1

[TextureOverrideDoriBlend]
hash = b0c49997
run = CommandListDoriBlend

[TextureOverrideDoriTexcoord]
hash = 1339b941
run = CommandListDoriTexcoord

[TextureOverrideDoriVertexLimitRaise]
hash = 0f07748b

[TextureOverrideDoriIB]
hash = 04929496
;hash = 3c46fe49
run = CommandListDoriIB

[TextureOverrideDoriHead]
hash = 04929496
;hash = 3c46fe49
match_first_index = 0
run = CommandListDoriHead


[TextureOverrideDoriBody]
hash = 04929496
;hash = 3c46fe49
match_first_index = 22941
run = CommandListDoriBody


[TextureOverrideDoriFaceHeadNormalMap]
hash = 2021c2b9
run = CommandListDoriFaceHeadNormalMap

; CommandList -------------------------

[CommandListDoriPosition]
if $swapvar == 0
	vb0 = ResourceDoriPosition.0
else if $swapvar == 1
	vb0 = ResourceDoriPosition.1
else if $swapvar == 2
	vb0 = ResourceDoriPosition.2
else if $swapvar == 3
	vb0 = ResourceDoriPosition.3
else if $swapvar == 4
	vb0 = ResourceDoriPosition.4
else if $swapvar == 5
	vb0 = ResourceDoriPosition.5
else if $swapvar == 6
	vb0 = ResourceDoriPosition.6
else if $swapvar == 7
	vb0 = ResourceDoriPosition.7
else if $swapvar == 8
	vb0 = ResourceDoriPosition.8
else if $swapvar == 9
	vb0 = ResourceDoriPosition.9
else if $swapvar == 10
	vb0 = ResourceDoriPosition.10
else if $swapvar == 11
	vb0 = ResourceDoriPosition.11
else if $swapvar == 12
	vb0 = ResourceDoriPosition.12
else if $swapvar == 13
	vb0 = ResourceDoriPosition.13
else if $swapvar == 14
	vb0 = ResourceDoriPosition.14
else if $swapvar == 15
	vb0 = ResourceDoriPosition.15
else if $swapvar == 16
	vb0 = ResourceDoriPosition.16
else if $swapvar == 17
	vb0 = ResourceDoriPosition.17
else if $swapvar == 18
	vb0 = ResourceDoriPosition.18
else if $swapvar == 19
	vb0 = ResourceDoriPosition.19
else if $swapvar == 20
	vb0 = ResourceDoriPosition.20
else if $swapvar == 21
	vb0 = ResourceDoriPosition.21
endif

[CommandListDoriBlend]
if $swapvar == 0
	vb1 = ResourceDoriBlend.0
	handling = skip
	draw = 23317,0
else if $swapvar == 1
	vb1 = ResourceDoriBlend.1
	handling = skip
	draw = 25292,0
else if $swapvar == 2
	vb1 = ResourceDoriBlend.2
	handling = skip
	draw = 22815,0
else if $swapvar == 3
	vb1 = ResourceDoriBlend.3
	handling = skip
	draw = 19821,0
else if $swapvar == 4
	vb1 = ResourceDoriBlend.4
	handling = skip
	draw = 18263,0
else if $swapvar == 5
	vb1 = ResourceDoriBlend.5
	handling = skip
	draw = 21467,0
else if $swapvar == 6
	vb1 = ResourceDoriBlend.6
	handling = skip
	draw = 18990,0
else if $swapvar == 7
	vb1 = ResourceDoriBlend.7
	handling = skip
	draw = 23966,0
else if $swapvar == 8
	vb1 = ResourceDoriBlend.8
	handling = skip
	draw = 23760,0
else if $swapvar == 9
	vb1 = ResourceDoriBlend.9
	handling = skip
	draw = 20766,0
else if $swapvar == 10
	vb1 = ResourceDoriBlend.10
	handling = skip
	draw = 18289,0
else if $swapvar == 11
	vb1 = ResourceDoriBlend.11
	handling = skip
	draw = 20470,0
else if $swapvar == 12
	vb1 = ResourceDoriBlend.12
	handling = skip
	draw = 18912,0
else if $swapvar == 13
	vb1 = ResourceDoriBlend.13
	handling = skip
	draw = 22281,0
else if $swapvar == 14
	vb1 = ResourceDoriBlend.14
	handling = skip
	draw = 19804,0
else if $swapvar == 15
	vb1 = ResourceDoriBlend.15
	handling = skip
	draw = 23664,0
else if $swapvar == 16
	vb1 = ResourceDoriBlend.16
	handling = skip
	draw = 23458,0
else if $swapvar == 17
	vb1 = ResourceDoriBlend.17
	handling = skip
	draw = 20464,0
else if $swapvar == 18
	vb1 = ResourceDoriBlend.18
	handling = skip
	draw = 17987,0
else if $swapvar == 19
	vb1 = ResourceDoriBlend.19
	handling = skip
	draw = 17401,0
else if $swapvar == 20
	vb1 = ResourceDoriBlend.20
	handling = skip
	draw = 20528,0
else if $swapvar == 21
	vb1 = ResourceDoriBlend.21
	handling = skip
	draw = 18051,0
endif

[CommandListDoriTexcoord]
if $swapvar == 0
	vb1 = ResourceDoriTexcoord.0
else if $swapvar == 1
	vb1 = ResourceDoriTexcoord.1
else if $swapvar == 2
	vb1 = ResourceDoriTexcoord.2
else if $swapvar == 3
	vb1 = ResourceDoriTexcoord.3
else if $swapvar == 4
	vb1 = ResourceDoriTexcoord.4
else if $swapvar == 5
	vb1 = ResourceDoriTexcoord.5
else if $swapvar == 6
	vb1 = ResourceDoriTexcoord.6
else if $swapvar == 7
	vb1 = ResourceDoriTexcoord.7
else if $swapvar == 8
	vb1 = ResourceDoriTexcoord.8
else if $swapvar == 9
	vb1 = ResourceDoriTexcoord.9
else if $swapvar == 10
	vb1 = ResourceDoriTexcoord.10
else if $swapvar == 11
	vb1 = ResourceDoriTexcoord.11
else if $swapvar == 12
	vb1 = ResourceDoriTexcoord.12
else if $swapvar == 13
	vb1 = ResourceDoriTexcoord.13
else if $swapvar == 14
	vb1 = ResourceDoriTexcoord.14
else if $swapvar == 15
	vb1 = ResourceDoriTexcoord.15
else if $swapvar == 16
	vb1 = ResourceDoriTexcoord.16
else if $swapvar == 17
	vb1 = ResourceDoriTexcoord.17
else if $swapvar == 18
	vb1 = ResourceDoriTexcoord.18
else if $swapvar == 19
	vb1 = ResourceDoriTexcoord.19
else if $swapvar == 20
	vb1 = ResourceDoriTexcoord.20
else if $swapvar == 21
	vb1 = ResourceDoriTexcoord.21
endif

[CommandListDoriIB]
if $swapvar == 0
	handling = skip
	drawindexed = auto
else if $swapvar == 1
	handling = skip
	drawindexed = auto
else if $swapvar == 2
	handling = skip
	drawindexed = auto
else if $swapvar == 3
	handling = skip
	drawindexed = auto
else if $swapvar == 4
	handling = skip
	drawindexed = auto
else if $swapvar == 5
	handling = skip
	drawindexed = auto
else if $swapvar == 6
	handling = skip
	drawindexed = auto
else if $swapvar == 7
	handling = skip
	drawindexed = auto
else if $swapvar == 8
	handling = skip
	drawindexed = auto
else if $swapvar == 9
	handling = skip
	drawindexed = auto
else if $swapvar == 10
	handling = skip
	drawindexed = auto
else if $swapvar == 11
	handling = skip
	drawindexed = auto
else if $swapvar == 12
	handling = skip
	drawindexed = auto
else if $swapvar == 13
	handling = skip
	drawindexed = auto
else if $swapvar == 14
	handling = skip
	drawindexed = auto
else if $swapvar == 15
	handling = skip
	drawindexed = auto
else if $swapvar == 16
	handling = skip
	drawindexed = auto
else if $swapvar == 17
	handling = skip
	drawindexed = auto
else if $swapvar == 18
	handling = skip
	drawindexed = auto
else if $swapvar == 19
	handling = skip
	drawindexed = auto
else if $swapvar == 20
	handling = skip
	drawindexed = auto
else if $swapvar == 21
	handling = skip
	drawindexed = auto
endif

[CommandListDoriHead]
if $swapvar == 0
	ib = ResourceDoriHeadIB.0
	ps-t0 = ResourceDoriHeadNormalMap.0
	ps-t1 = ResourceDoriHeadDiffuse.0
	ps-t2 = ResourceDoriHeadLightMap.0
	ps-t3 = ResourceDoriHeadMetalMap.0
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 1
	ib = ResourceDoriHeadIB.1
	ps-t0 = ResourceDoriHeadNormalMap.1
	ps-t1 = ResourceDoriHeadDiffuse.1
	ps-t2 = ResourceDoriHeadLightMap.1
	ps-t3 = ResourceDoriHeadMetalMap.1
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 2
	ib = ResourceDoriHeadIB.2
	ps-t0 = ResourceDoriHeadNormalMap.2
	ps-t1 = ResourceDoriHeadDiffuse.2
	ps-t2 = ResourceDoriHeadLightMap.2
	ps-t3 = ResourceDoriHeadMetalMap.2
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 3
	ib = ResourceDoriHeadIB.3
	ps-t0 = ResourceDoriHeadNormalMap.3
	ps-t1 = ResourceDoriHeadDiffuse.3
	ps-t2 = ResourceDoriHeadLightMap.3
	ps-t3 = ResourceDoriHeadMetalMap.3
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 4
	ib = ResourceDoriHeadIB.4
	ps-t0 = ResourceDoriHeadNormalMap.4
	ps-t1 = ResourceDoriHeadDiffuse.4
	ps-t2 = ResourceDoriHeadLightMap.4
	ps-t3 = ResourceDoriHeadMetalMap.4
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 5
	ib = ResourceDoriHeadIB.5
	ps-t0 = ResourceDoriHeadNormalMap.5
	ps-t1 = ResourceDoriHeadDiffuse.5
	ps-t2 = ResourceDoriHeadLightMap.5
	ps-t3 = ResourceDoriHeadMetalMap.5
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 6
	ib = ResourceDoriHeadIB.6
	ps-t0 = ResourceDoriHeadNormalMap.6
	ps-t1 = ResourceDoriHeadDiffuse.6
	ps-t2 = ResourceDoriHeadLightMap.6
	ps-t3 = ResourceDoriHeadMetalMap.6
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 7
	ib = ResourceDoriHeadIB.7
	ps-t0 = ResourceDoriHeadNormalMap.7
	ps-t1 = ResourceDoriHeadDiffuse.7
	ps-t2 = ResourceDoriHeadLightMap.7
	ps-t3 = ResourceDoriHeadMetalMap.7
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 8
	ib = ResourceDoriHeadIB.8
	ps-t0 = ResourceDoriHeadNormalMap.8
	ps-t1 = ResourceDoriHeadDiffuse.8
	ps-t2 = ResourceDoriHeadLightMap.8
	ps-t3 = ResourceDoriHeadMetalMap.8
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 9
	ib = ResourceDoriHeadIB.9
	ps-t0 = ResourceDoriHeadNormalMap.9
	ps-t1 = ResourceDoriHeadDiffuse.9
	ps-t2 = ResourceDoriHeadLightMap.9
	ps-t3 = ResourceDoriHeadMetalMap.9
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 10
	ib = ResourceDoriHeadIB.10
	ps-t0 = ResourceDoriHeadNormalMap.10
	ps-t1 = ResourceDoriHeadDiffuse.10
	ps-t2 = ResourceDoriHeadLightMap.10
	ps-t3 = ResourceDoriHeadMetalMap.10
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 11
	ib = ResourceDoriHeadIB.11
	ps-t0 = ResourceDoriHeadNormalMap.11
	ps-t1 = ResourceDoriHeadDiffuse.11
	ps-t2 = ResourceDoriHeadLightMap.11
	ps-t3 = ResourceDoriHeadMetalMap.11
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 12
	ib = ResourceDoriHeadIB.12
	ps-t0 = ResourceDoriHeadNormalMap.12
	ps-t1 = ResourceDoriHeadDiffuse.12
	ps-t2 = ResourceDoriHeadLightMap.12
	ps-t3 = ResourceDoriHeadMetalMap.12
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 13
	ib = ResourceDoriHeadIB.13
	ps-t0 = ResourceDoriHeadNormalMap.13
	ps-t1 = ResourceDoriHeadDiffuse.13
	ps-t2 = ResourceDoriHeadLightMap.13
	ps-t3 = ResourceDoriHeadMetalMap.13
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 14
	ib = ResourceDoriHeadIB.14
	ps-t0 = ResourceDoriHeadNormalMap.14
	ps-t1 = ResourceDoriHeadDiffuse.14
	ps-t2 = ResourceDoriHeadLightMap.14
	ps-t3 = ResourceDoriHeadMetalMap.14
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 15
	ib = ResourceDoriHeadIB.15
	ps-t0 = ResourceDoriHeadNormalMap.15
	ps-t1 = ResourceDoriHeadDiffuse.15
	ps-t2 = ResourceDoriHeadLightMap.15
	ps-t3 = ResourceDoriHeadMetalMap.15
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 16
	ib = ResourceDoriHeadIB.16
	ps-t0 = ResourceDoriHeadNormalMap.16
	ps-t1 = ResourceDoriHeadDiffuse.16
	ps-t2 = ResourceDoriHeadLightMap.16
	ps-t3 = ResourceDoriHeadMetalMap.16
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 17
	ib = ResourceDoriHeadIB.17
	ps-t0 = ResourceDoriHeadNormalMap.17
	ps-t1 = ResourceDoriHeadDiffuse.17
	ps-t2 = ResourceDoriHeadLightMap.17
	ps-t3 = ResourceDoriHeadMetalMap.17
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 18
	ib = ResourceDoriHeadIB.18
	ps-t0 = ResourceDoriHeadNormalMap.18
	ps-t1 = ResourceDoriHeadDiffuse.18
	ps-t2 = ResourceDoriHeadLightMap.18
	ps-t3 = ResourceDoriHeadMetalMap.18
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 19
	ib = ResourceDoriHeadIB.19
	ps-t0 = ResourceDoriHeadNormalMap.19
	ps-t1 = ResourceDoriHeadDiffuse.19
	ps-t2 = ResourceDoriHeadLightMap.19
	ps-t3 = ResourceDoriHeadMetalMap.19
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 20
	ib = ResourceDoriHeadIB.20
	ps-t0 = ResourceDoriHeadNormalMap.20
	ps-t1 = ResourceDoriHeadDiffuse.20
	ps-t2 = ResourceDoriHeadLightMap.20
	ps-t3 = ResourceDoriHeadMetalMap.20
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 21
	ib = ResourceDoriHeadIB.21
	ps-t0 = ResourceDoriHeadNormalMap.21
	ps-t1 = ResourceDoriHeadDiffuse.21
	ps-t2 = ResourceDoriHeadLightMap.21
	ps-t3 = ResourceDoriHeadMetalMap.21
	run = CommandList\global\ORFix\ORFix
endif

[CommandListDoriBody]
if $swapvar == 0
	ib = ResourceDoriBodyIB.0
	ps-t0 = ResourceDoriBodyNormalMap.0
	ps-t1 = ResourceDoriBodyDiffuse.0
	ps-t2 = ResourceDoriBodyLightMap.0
	ps-t3 = ResourceDoriBodyMetalMap.0
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 1
	ib = ResourceDoriBodyIB.1
	ps-t0 = ResourceDoriBodyNormalMap.1
	ps-t1 = ResourceDoriBodyDiffuse.1
	ps-t2 = ResourceDoriBodyLightMap.1
	ps-t3 = ResourceDoriBodyMetalMap.1
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 2
	ib = ResourceDoriBodyIB.2
	ps-t0 = ResourceDoriBodyNormalMap.2
	ps-t1 = ResourceDoriBodyDiffuse.2
	ps-t2 = ResourceDoriBodyLightMap.2
	ps-t3 = ResourceDoriBodyMetalMap.2
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 3
	ib = ResourceDoriBodyIB.3
	ps-t0 = ResourceDoriBodyNormalMap.3
	ps-t1 = ResourceDoriBodyDiffuse.3
	ps-t2 = ResourceDoriBodyLightMap.3
	ps-t3 = ResourceDoriBodyMetalMap.3
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 4
	ib = ResourceDoriBodyIB.4
	ps-t0 = ResourceDoriBodyNormalMap.4
	ps-t1 = ResourceDoriBodyDiffuse.4
	ps-t2 = ResourceDoriBodyLightMap.4
	ps-t3 = ResourceDoriBodyMetalMap.4
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 5
	ib = ResourceDoriBodyIB.5
	ps-t0 = ResourceDoriBodyNormalMap.5
	ps-t1 = ResourceDoriBodyDiffuse.5
	ps-t2 = ResourceDoriBodyLightMap.5
	ps-t3 = ResourceDoriBodyMetalMap.5
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 6
	ib = ResourceDoriBodyIB.6
	ps-t0 = ResourceDoriBodyNormalMap.6
	ps-t1 = ResourceDoriBodyDiffuse.6
	ps-t2 = ResourceDoriBodyLightMap.6
	ps-t3 = ResourceDoriBodyMetalMap.6
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 7
	ib = ResourceDoriBodyIB.7
	ps-t0 = ResourceDoriBodyNormalMap.7
	ps-t1 = ResourceDoriBodyDiffuse.7
	ps-t2 = ResourceDoriBodyLightMap.7
	ps-t3 = ResourceDoriBodyMetalMap.7
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 8
	ib = ResourceDoriBodyIB.8
	ps-t0 = ResourceDoriBodyNormalMap.8
	ps-t1 = ResourceDoriBodyDiffuse.8
	ps-t2 = ResourceDoriBodyLightMap.8
	ps-t3 = ResourceDoriBodyMetalMap.8
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 9
	ib = ResourceDoriBodyIB.9
	ps-t0 = ResourceDoriBodyNormalMap.9
	ps-t1 = ResourceDoriBodyDiffuse.9
	ps-t2 = ResourceDoriBodyLightMap.9
	ps-t3 = ResourceDoriBodyMetalMap.9
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 10
	ib = ResourceDoriBodyIB.10
	ps-t0 = ResourceDoriBodyNormalMap.10
	ps-t1 = ResourceDoriBodyDiffuse.10
	ps-t2 = ResourceDoriBodyLightMap.10
	ps-t3 = ResourceDoriBodyMetalMap.10
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 11
	ib = ResourceDoriBodyIB.11
	ps-t0 = ResourceDoriBodyNormalMap.11
	ps-t1 = ResourceDoriBodyDiffuse.11
	ps-t2 = ResourceDoriBodyLightMap.11
	ps-t3 = ResourceDoriBodyMetalMap.11
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 12
	ib = ResourceDoriBodyIB.12
	ps-t0 = ResourceDoriBodyNormalMap.12
	ps-t1 = ResourceDoriBodyDiffuse.12
	ps-t2 = ResourceDoriBodyLightMap.12
	ps-t3 = ResourceDoriBodyMetalMap.12
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 13
	ib = ResourceDoriBodyIB.13
	ps-t0 = ResourceDoriBodyNormalMap.13
	ps-t1 = ResourceDoriBodyDiffuse.13
	ps-t2 = ResourceDoriBodyLightMap.13
	ps-t3 = ResourceDoriBodyMetalMap.13
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 14
	ib = ResourceDoriBodyIB.14
	ps-t0 = ResourceDoriBodyNormalMap.14
	ps-t1 = ResourceDoriBodyDiffuse.14
	ps-t2 = ResourceDoriBodyLightMap.14
	ps-t3 = ResourceDoriBodyMetalMap.14
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 15
	ib = ResourceDoriBodyIB.15
	ps-t0 = ResourceDoriBodyNormalMap.15
	ps-t1 = ResourceDoriBodyDiffuse.15
	ps-t2 = ResourceDoriBodyLightMap.15
	ps-t3 = ResourceDoriBodyMetalMap.15
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 16
	ib = ResourceDoriBodyIB.16
	ps-t0 = ResourceDoriBodyNormalMap.16
	ps-t1 = ResourceDoriBodyDiffuse.16
	ps-t2 = ResourceDoriBodyLightMap.16
	ps-t3 = ResourceDoriBodyMetalMap.16
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 17
	ib = ResourceDoriBodyIB.17
	ps-t0 = ResourceDoriBodyNormalMap.17
	ps-t1 = ResourceDoriBodyDiffuse.17
	ps-t2 = ResourceDoriBodyLightMap.17
	ps-t3 = ResourceDoriBodyMetalMap.17
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 18
	ib = ResourceDoriBodyIB.18
	ps-t0 = ResourceDoriBodyNormalMap.18
	ps-t1 = ResourceDoriBodyDiffuse.18
	ps-t2 = ResourceDoriBodyLightMap.18
	ps-t3 = ResourceDoriBodyMetalMap.18
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 19
	ib = ResourceDoriBodyIB.19
	ps-t0 = ResourceDoriBodyNormalMap.19
	ps-t1 = ResourceDoriBodyDiffuse.19
	ps-t2 = ResourceDoriBodyLightMap.19
	ps-t3 = ResourceDoriBodyMetalMap.19
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 20
	ib = ResourceDoriBodyIB.20
	ps-t0 = ResourceDoriBodyNormalMap.20
	ps-t1 = ResourceDoriBodyDiffuse.20
	ps-t2 = ResourceDoriBodyLightMap.20
	ps-t3 = ResourceDoriBodyMetalMap.20
	run = CommandList\global\ORFix\ORFix
else if $swapvar == 21
	ib = ResourceDoriBodyIB.21
	ps-t0 = ResourceDoriBodyNormalMap.21
	ps-t1 = ResourceDoriBodyDiffuse.21
	ps-t2 = ResourceDoriBodyLightMap.21
	ps-t3 = ResourceDoriBodyMetalMap.21
	run = CommandList\global\ORFix\ORFix
endif

[CommandListDoriFaceHeadNormalMap]
if $swapvar == 0
	ps-t0 = ResourceDoriFaceHeadNormalMap.0
else if $swapvar == 1
	ps-t0 = ResourceDoriFaceHeadNormalMap.1
else if $swapvar == 2
	ps-t0 = ResourceDoriFaceHeadNormalMap.2
else if $swapvar == 3
	ps-t0 = ResourceDoriFaceHeadNormalMap.3
else if $swapvar == 4
	ps-t0 = ResourceDoriFaceHeadNormalMap.4
else if $swapvar == 5
	ps-t0 = ResourceDoriFaceHeadNormalMap.5
else if $swapvar == 6
	ps-t0 = ResourceDoriFaceHeadNormalMap.6
else if $swapvar == 7
	ps-t0 = ResourceDoriFaceHeadNormalMap.7
else if $swapvar == 8
	ps-t0 = ResourceDoriFaceHeadNormalMap.8
else if $swapvar == 9
	ps-t0 = ResourceDoriFaceHeadNormalMap.9
else if $swapvar == 10
	ps-t0 = ResourceDoriFaceHeadNormalMap.10
else if $swapvar == 11
	ps-t0 = ResourceDoriFaceHeadNormalMap.11
else if $swapvar == 12
	ps-t0 = ResourceDoriFaceHeadNormalMap.12
else if $swapvar == 13
	ps-t0 = ResourceDoriFaceHeadNormalMap.13
else if $swapvar == 14
	ps-t0 = ResourceDoriFaceHeadNormalMap.14
else if $swapvar == 15
	ps-t0 = ResourceDoriFaceHeadNormalMap.15
else if $swapvar == 16
	ps-t0 = ResourceDoriFaceHeadNormalMap.16
else if $swapvar == 17
	ps-t0 = ResourceDoriFaceHeadNormalMap.17
else if $swapvar == 18
	ps-t0 = ResourceDoriFaceHeadNormalMap.18
else if $swapvar == 19
	ps-t0 = ResourceDoriFaceHeadNormalMap.19
else if $swapvar == 20
	ps-t0 = ResourceDoriFaceHeadNormalMap.20
else if $swapvar == 21
	ps-t0 = ResourceDoriFaceHeadNormalMap.21
endif

; Resources ---------------------------

[ResourceDoriPosition.0]
type = Buffer
stride = 40
filename = .\DoriModf0000\DoriPosition.buf

[ResourceDoriBlend.0]
type = Buffer
stride = 32
filename = .\DoriModf0000\DoriBlend.buf

[ResourceDoriTexcoord.0]
type = Buffer
stride = 12
filename = .\DoriModf0000\DoriTexcoord.buf

[ResourceDoriHeadIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0000\DoriHead.ib

[ResourceDoriBodyIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0000\DoriBody.ib

[ResourceDoriHeadNormalMap.0]
filename = .\DoriModf0000\DoriHeadNormalMap.dds

[ResourceDoriHeadDiffuse.0]
filename = .\DoriModf0000\DoriHeadDiffuse.dds

[ResourceDoriHeadLightMap.0]
filename = .\DoriModf0000\DoriHeadLightMap.dds

[ResourceDoriHeadMetalMap.0]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriBodyNormalMap.0]
filename = .\DoriModf0000\DoriBodyNormalMap.dds

[ResourceDoriBodyDiffuse.0]
filename = .\DoriModf0000\DoriBodyDiffuse.dds

[ResourceDoriBodyLightMap.0]
filename = .\DoriModf0000\DoriBodyLightMap.dds

[ResourceDoriBodyMetalMap.0]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriFaceHeadNormalMap.0]
filename = .\DoriModf0000\DoriFaceHeadNormalMap.dds

[ResourceDoriPosition.1]
type = Buffer
stride = 40
filename = .\DoriModf0001\DoriPosition.buf

[ResourceDoriBlend.1]
type = Buffer
stride = 32
filename = .\DoriModf0001\DoriBlend.buf

[ResourceDoriTexcoord.1]
type = Buffer
stride = 12
filename = .\DoriModf0001\DoriTexcoord.buf

[ResourceDoriHeadIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0001\DoriHead.ib

[ResourceDoriBodyIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0001\DoriBody.ib

[ResourceDoriHeadNormalMap.1]
filename = .\DoriModf0000\DoriHeadNormalMap.dds

[ResourceDoriHeadDiffuse.1]
filename = .\DoriModf0000\DoriHeadDiffuse.dds

[ResourceDoriHeadLightMap.1]
filename = .\DoriModf0000\DoriHeadLightMap.dds

[ResourceDoriHeadMetalMap.1]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriBodyNormalMap.1]
filename = .\DoriModf0000\DoriBodyNormalMap.dds

[ResourceDoriBodyDiffuse.1]
filename = .\DoriModf0000\DoriBodyDiffuse.dds

[ResourceDoriBodyLightMap.1]
filename = .\DoriModf0000\DoriBodyLightMap.dds

[ResourceDoriBodyMetalMap.1]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriFaceHeadNormalMap.1]
filename = .\DoriModf0000\DoriFaceHeadNormalMap.dds

[ResourceDoriPosition.2]
type = Buffer
stride = 40
filename = .\DoriModf0002\DoriPosition.buf

[ResourceDoriBlend.2]
type = Buffer
stride = 32
filename = .\DoriModf0002\DoriBlend.buf

[ResourceDoriTexcoord.2]
type = Buffer
stride = 12
filename = .\DoriModf0002\DoriTexcoord.buf

[ResourceDoriHeadIB.2]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0001\DoriHead.ib

[ResourceDoriBodyIB.2]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0002\DoriBody.ib

[ResourceDoriHeadNormalMap.2]
filename = .\DoriModf0000\DoriHeadNormalMap.dds

[ResourceDoriHeadDiffuse.2]
filename = .\DoriModf0000\DoriHeadDiffuse.dds

[ResourceDoriHeadLightMap.2]
filename = .\DoriModf0000\DoriHeadLightMap.dds

[ResourceDoriHeadMetalMap.2]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriBodyNormalMap.2]
filename = .\DoriModf0000\DoriBodyNormalMap.dds

[ResourceDoriBodyDiffuse.2]
filename = .\DoriModf0000\DoriBodyDiffuse.dds

[ResourceDoriBodyLightMap.2]
filename = .\DoriModf0000\DoriBodyLightMap.dds

[ResourceDoriBodyMetalMap.2]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriFaceHeadNormalMap.2]
filename = .\DoriModf0000\DoriFaceHeadNormalMap.dds

[ResourceDoriPosition.3]
type = Buffer
stride = 40
filename = .\DoriModf0003\DoriPosition.buf

[ResourceDoriBlend.3]
type = Buffer
stride = 32
filename = .\DoriModf0003\DoriBlend.buf

[ResourceDoriTexcoord.3]
type = Buffer
stride = 12
filename = .\DoriModf0003\DoriTexcoord.buf

[ResourceDoriHeadIB.3]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0003\DoriHead.ib

[ResourceDoriBodyIB.3]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0003\DoriBody.ib

[ResourceDoriHeadNormalMap.3]
filename = .\DoriModf0000\DoriHeadNormalMap.dds

[ResourceDoriHeadDiffuse.3]
filename = .\DoriModf0003\DoriHeadDiffuse.dds

[ResourceDoriHeadLightMap.3]
filename = .\DoriModf0003\DoriHeadLightMap.dds

[ResourceDoriHeadMetalMap.3]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriBodyNormalMap.3]
filename = .\DoriModf0000\DoriBodyNormalMap.dds

[ResourceDoriBodyDiffuse.3]
filename = .\DoriModf0000\DoriBodyDiffuse.dds

[ResourceDoriBodyLightMap.3]
filename = .\DoriModf0000\DoriBodyLightMap.dds

[ResourceDoriBodyMetalMap.3]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriFaceHeadNormalMap.3]
filename = .\DoriModf0000\DoriFaceHeadNormalMap.dds

[ResourceDoriPosition.4]
type = Buffer
stride = 40
filename = .\DoriModf0004\DoriPosition.buf

[ResourceDoriBlend.4]
type = Buffer
stride = 32
filename = .\DoriModf0004\DoriBlend.buf

[ResourceDoriTexcoord.4]
type = Buffer
stride = 12
filename = .\DoriModf0004\DoriTexcoord.buf

[ResourceDoriHeadIB.4]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0003\DoriHead.ib

[ResourceDoriBodyIB.4]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0004\DoriBody.ib

[ResourceDoriHeadNormalMap.4]
filename = .\DoriModf0000\DoriHeadNormalMap.dds

[ResourceDoriHeadDiffuse.4]
filename = .\DoriModf0003\DoriHeadDiffuse.dds

[ResourceDoriHeadLightMap.4]
filename = .\DoriModf0003\DoriHeadLightMap.dds

[ResourceDoriHeadMetalMap.4]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriBodyNormalMap.4]
filename = .\DoriModf0000\DoriBodyNormalMap.dds

[ResourceDoriBodyDiffuse.4]
filename = .\DoriModf0000\DoriBodyDiffuse.dds

[ResourceDoriBodyLightMap.4]
filename = .\DoriModf0000\DoriBodyLightMap.dds

[ResourceDoriBodyMetalMap.4]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriFaceHeadNormalMap.4]
filename = .\DoriModf0000\DoriFaceHeadNormalMap.dds

[ResourceDoriPosition.5]
type = Buffer
stride = 40
filename = .\DoriModf0005\DoriPosition.buf

[ResourceDoriBlend.5]
type = Buffer
stride = 32
filename = .\DoriModf0005\DoriBlend.buf

[ResourceDoriTexcoord.5]
type = Buffer
stride = 12
filename = .\DoriModf0005\DoriTexcoord.buf

[ResourceDoriHeadIB.5]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0003\DoriHead.ib

[ResourceDoriBodyIB.5]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0005\DoriBody.ib

[ResourceDoriHeadNormalMap.5]
filename = .\DoriModf0000\DoriHeadNormalMap.dds

[ResourceDoriHeadDiffuse.5]
filename = .\DoriModf0003\DoriHeadDiffuse.dds

[ResourceDoriHeadLightMap.5]
filename = .\DoriModf0003\DoriHeadLightMap.dds

[ResourceDoriHeadMetalMap.5]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriBodyNormalMap.5]
filename = .\DoriModf0000\DoriBodyNormalMap.dds

[ResourceDoriBodyDiffuse.5]
filename = .\DoriModf0000\DoriBodyDiffuse.dds

[ResourceDoriBodyLightMap.5]
filename = .\DoriModf0000\DoriBodyLightMap.dds

[ResourceDoriBodyMetalMap.5]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriFaceHeadNormalMap.5]
filename = .\DoriModf0000\DoriFaceHeadNormalMap.dds

[ResourceDoriPosition.6]
type = Buffer
stride = 40
filename = .\DoriModf0006\DoriPosition.buf

[ResourceDoriBlend.6]
type = Buffer
stride = 32
filename = .\DoriModf0006\DoriBlend.buf

[ResourceDoriTexcoord.6]
type = Buffer
stride = 12
filename = .\DoriModf0006\DoriTexcoord.buf

[ResourceDoriHeadIB.6]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0003\DoriHead.ib

[ResourceDoriBodyIB.6]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0006\DoriBody.ib

[ResourceDoriHeadNormalMap.6]
filename = .\DoriModf0000\DoriHeadNormalMap.dds

[ResourceDoriHeadDiffuse.6]
filename = .\DoriModf0003\DoriHeadDiffuse.dds

[ResourceDoriHeadLightMap.6]
filename = .\DoriModf0003\DoriHeadLightMap.dds

[ResourceDoriHeadMetalMap.6]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriBodyNormalMap.6]
filename = .\DoriModf0000\DoriBodyNormalMap.dds

[ResourceDoriBodyDiffuse.6]
filename = .\DoriModf0000\DoriBodyDiffuse.dds

[ResourceDoriBodyLightMap.6]
filename = .\DoriModf0000\DoriBodyLightMap.dds

[ResourceDoriBodyMetalMap.6]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriFaceHeadNormalMap.6]
filename = .\DoriModf0000\DoriFaceHeadNormalMap.dds

[ResourceDoriPosition.7]
type = Buffer
stride = 40
filename = .\DoriModf0007\DoriPosition.buf

[ResourceDoriBlend.7]
type = Buffer
stride = 32
filename = .\DoriModf0007\DoriBlend.buf

[ResourceDoriTexcoord.7]
type = Buffer
stride = 12
filename = .\DoriModf0007\DoriTexcoord.buf

[ResourceDoriHeadIB.7]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0000\DoriHead.ib

[ResourceDoriBodyIB.7]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0007\DoriBody.ib

[ResourceDoriHeadNormalMap.7]
filename = .\DoriModf0000\DoriHeadNormalMap.dds

[ResourceDoriHeadDiffuse.7]
filename = .\DoriModf0000\DoriHeadDiffuse.dds

[ResourceDoriHeadLightMap.7]
filename = .\DoriModf0000\DoriHeadLightMap.dds

[ResourceDoriHeadMetalMap.7]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriBodyNormalMap.7]
filename = .\DoriModf0000\DoriBodyNormalMap.dds

[ResourceDoriBodyDiffuse.7]
filename = .\DoriModf0000\DoriBodyDiffuse.dds

[ResourceDoriBodyLightMap.7]
filename = .\DoriModf0000\DoriBodyLightMap.dds

[ResourceDoriBodyMetalMap.7]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriFaceHeadNormalMap.7]
filename = .\DoriModf0000\DoriFaceHeadNormalMap.dds

[ResourceDoriPosition.8]
type = Buffer
stride = 40
filename = .\DoriModf0008\DoriPosition.buf

[ResourceDoriBlend.8]
type = Buffer
stride = 32
filename = .\DoriModf0008\DoriBlend.buf

[ResourceDoriTexcoord.8]
type = Buffer
stride = 12
filename = .\DoriModf0008\DoriTexcoord.buf

[ResourceDoriHeadIB.8]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0001\DoriHead.ib

[ResourceDoriBodyIB.8]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0008\DoriBody.ib

[ResourceDoriHeadNormalMap.8]
filename = .\DoriModf0000\DoriHeadNormalMap.dds

[ResourceDoriHeadDiffuse.8]
filename = .\DoriModf0000\DoriHeadDiffuse.dds

[ResourceDoriHeadLightMap.8]
filename = .\DoriModf0000\DoriHeadLightMap.dds

[ResourceDoriHeadMetalMap.8]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriBodyNormalMap.8]
filename = .\DoriModf0000\DoriBodyNormalMap.dds

[ResourceDoriBodyDiffuse.8]
filename = .\DoriModf0000\DoriBodyDiffuse.dds

[ResourceDoriBodyLightMap.8]
filename = .\DoriModf0000\DoriBodyLightMap.dds

[ResourceDoriBodyMetalMap.8]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriFaceHeadNormalMap.8]
filename = .\DoriModf0000\DoriFaceHeadNormalMap.dds

[ResourceDoriPosition.9]
type = Buffer
stride = 40
filename = .\DoriModf0009\DoriPosition.buf

[ResourceDoriBlend.9]
type = Buffer
stride = 32
filename = .\DoriModf0009\DoriBlend.buf

[ResourceDoriTexcoord.9]
type = Buffer
stride = 12
filename = .\DoriModf0009\DoriTexcoord.buf

[ResourceDoriHeadIB.9]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0003\DoriHead.ib

[ResourceDoriBodyIB.9]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0009\DoriBody.ib

[ResourceDoriHeadNormalMap.9]
filename = .\DoriModf0000\DoriHeadNormalMap.dds

[ResourceDoriHeadDiffuse.9]
filename = .\DoriModf0003\DoriHeadDiffuse.dds

[ResourceDoriHeadLightMap.9]
filename = .\DoriModf0003\DoriHeadLightMap.dds

[ResourceDoriHeadMetalMap.9]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriBodyNormalMap.9]
filename = .\DoriModf0000\DoriBodyNormalMap.dds

[ResourceDoriBodyDiffuse.9]
filename = .\DoriModf0000\DoriBodyDiffuse.dds

[ResourceDoriBodyLightMap.9]
filename = .\DoriModf0000\DoriBodyLightMap.dds

[ResourceDoriBodyMetalMap.9]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriFaceHeadNormalMap.9]
filename = .\DoriModf0000\DoriFaceHeadNormalMap.dds

[ResourceDoriPosition.10]
type = Buffer
stride = 40
filename = .\DoriModf0010\DoriPosition.buf

[ResourceDoriBlend.10]
type = Buffer
stride = 32
filename = .\DoriModf0010\DoriBlend.buf

[ResourceDoriTexcoord.10]
type = Buffer
stride = 12
filename = .\DoriModf0010\DoriTexcoord.buf

[ResourceDoriHeadIB.10]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0003\DoriHead.ib

[ResourceDoriBodyIB.10]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0010\DoriBody.ib

[ResourceDoriHeadNormalMap.10]
filename = .\DoriModf0000\DoriHeadNormalMap.dds

[ResourceDoriHeadDiffuse.10]
filename = .\DoriModf0003\DoriHeadDiffuse.dds

[ResourceDoriHeadLightMap.10]
filename = .\DoriModf0003\DoriHeadLightMap.dds

[ResourceDoriHeadMetalMap.10]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriBodyNormalMap.10]
filename = .\DoriModf0000\DoriBodyNormalMap.dds

[ResourceDoriBodyDiffuse.10]
filename = .\DoriModf0000\DoriBodyDiffuse.dds

[ResourceDoriBodyLightMap.10]
filename = .\DoriModf0000\DoriBodyLightMap.dds

[ResourceDoriBodyMetalMap.10]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriFaceHeadNormalMap.10]
filename = .\DoriModf0000\DoriFaceHeadNormalMap.dds

[ResourceDoriPosition.11]
type = Buffer
stride = 40
filename = .\DoriModf0011\DoriPosition.buf

[ResourceDoriBlend.11]
type = Buffer
stride = 32
filename = .\DoriModf0011\DoriBlend.buf

[ResourceDoriTexcoord.11]
type = Buffer
stride = 12
filename = .\DoriModf0011\DoriTexcoord.buf

[ResourceDoriHeadIB.11]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0003\DoriHead.ib

[ResourceDoriBodyIB.11]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0011\DoriBody.ib

[ResourceDoriHeadNormalMap.11]
filename = .\DoriModf0000\DoriHeadNormalMap.dds

[ResourceDoriHeadDiffuse.11]
filename = .\DoriModf0003\DoriHeadDiffuse.dds

[ResourceDoriHeadLightMap.11]
filename = .\DoriModf0003\DoriHeadLightMap.dds

[ResourceDoriHeadMetalMap.11]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriBodyNormalMap.11]
filename = .\DoriModf0000\DoriBodyNormalMap.dds

[ResourceDoriBodyDiffuse.11]
filename = .\DoriModf0000\DoriBodyDiffuse.dds

[ResourceDoriBodyLightMap.11]
filename = .\DoriModf0000\DoriBodyLightMap.dds

[ResourceDoriBodyMetalMap.11]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriFaceHeadNormalMap.11]
filename = .\DoriModf0000\DoriFaceHeadNormalMap.dds

[ResourceDoriPosition.12]
type = Buffer
stride = 40
filename = .\DoriModf0012\DoriPosition.buf

[ResourceDoriBlend.12]
type = Buffer
stride = 32
filename = .\DoriModf0012\DoriBlend.buf

[ResourceDoriTexcoord.12]
type = Buffer
stride = 12
filename = .\DoriModf0012\DoriTexcoord.buf

[ResourceDoriHeadIB.12]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0003\DoriHead.ib

[ResourceDoriBodyIB.12]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0012\DoriBody.ib

[ResourceDoriHeadNormalMap.12]
filename = .\DoriModf0000\DoriHeadNormalMap.dds

[ResourceDoriHeadDiffuse.12]
filename = .\DoriModf0003\DoriHeadDiffuse.dds

[ResourceDoriHeadLightMap.12]
filename = .\DoriModf0003\DoriHeadLightMap.dds

[ResourceDoriHeadMetalMap.12]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriBodyNormalMap.12]
filename = .\DoriModf0000\DoriBodyNormalMap.dds

[ResourceDoriBodyDiffuse.12]
filename = .\DoriModf0000\DoriBodyDiffuse.dds

[ResourceDoriBodyLightMap.12]
filename = .\DoriModf0000\DoriBodyLightMap.dds

[ResourceDoriBodyMetalMap.12]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriFaceHeadNormalMap.12]
filename = .\DoriModf0000\DoriFaceHeadNormalMap.dds

[ResourceDoriPosition.13]
type = Buffer
stride = 40
filename = .\DoriModf0013\DoriPosition.buf

[ResourceDoriBlend.13]
type = Buffer
stride = 32
filename = .\DoriModf0013\DoriBlend.buf

[ResourceDoriTexcoord.13]
type = Buffer
stride = 12
filename = .\DoriModf0013\DoriTexcoord.buf

[ResourceDoriHeadIB.13]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0003\DoriHead.ib

[ResourceDoriBodyIB.13]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0013\DoriBody.ib

[ResourceDoriHeadNormalMap.13]
filename = .\DoriModf0000\DoriHeadNormalMap.dds

[ResourceDoriHeadDiffuse.13]
filename = .\DoriModf0003\DoriHeadDiffuse.dds

[ResourceDoriHeadLightMap.13]
filename = .\DoriModf0003\DoriHeadLightMap.dds

[ResourceDoriHeadMetalMap.13]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriBodyNormalMap.13]
filename = .\DoriModf0000\DoriBodyNormalMap.dds

[ResourceDoriBodyDiffuse.13]
filename = .\DoriModf0000\DoriBodyDiffuse.dds

[ResourceDoriBodyLightMap.13]
filename = .\DoriModf0000\DoriBodyLightMap.dds

[ResourceDoriBodyMetalMap.13]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriFaceHeadNormalMap.13]
filename = .\DoriModf0000\DoriFaceHeadNormalMap.dds

[ResourceDoriPosition.14]
type = Buffer
stride = 40
filename = .\DoriModf0014\DoriPosition.buf

[ResourceDoriBlend.14]
type = Buffer
stride = 32
filename = .\DoriModf0014\DoriBlend.buf

[ResourceDoriTexcoord.14]
type = Buffer
stride = 12
filename = .\DoriModf0014\DoriTexcoord.buf

[ResourceDoriHeadIB.14]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0003\DoriHead.ib

[ResourceDoriBodyIB.14]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0014\DoriBody.ib

[ResourceDoriHeadNormalMap.14]
filename = .\DoriModf0000\DoriHeadNormalMap.dds

[ResourceDoriHeadDiffuse.14]
filename = .\DoriModf0003\DoriHeadDiffuse.dds

[ResourceDoriHeadLightMap.14]
filename = .\DoriModf0003\DoriHeadLightMap.dds

[ResourceDoriHeadMetalMap.14]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriBodyNormalMap.14]
filename = .\DoriModf0000\DoriBodyNormalMap.dds

[ResourceDoriBodyDiffuse.14]
filename = .\DoriModf0000\DoriBodyDiffuse.dds

[ResourceDoriBodyLightMap.14]
filename = .\DoriModf0000\DoriBodyLightMap.dds

[ResourceDoriBodyMetalMap.14]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriFaceHeadNormalMap.14]
filename = .\DoriModf0000\DoriFaceHeadNormalMap.dds

[ResourceDoriPosition.15]
type = Buffer
stride = 40
filename = .\DoriModf0015\DoriPosition.buf

[ResourceDoriBlend.15]
type = Buffer
stride = 32
filename = .\DoriModf0015\DoriBlend.buf

[ResourceDoriTexcoord.15]
type = Buffer
stride = 12
filename = .\DoriModf0015\DoriTexcoord.buf

[ResourceDoriHeadIB.15]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0000\DoriHead.ib

[ResourceDoriBodyIB.15]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0015\DoriBody.ib

[ResourceDoriHeadNormalMap.15]
filename = .\DoriModf0000\DoriHeadNormalMap.dds

[ResourceDoriHeadDiffuse.15]
filename = .\DoriModf0000\DoriHeadDiffuse.dds

[ResourceDoriHeadLightMap.15]
filename = .\DoriModf0000\DoriHeadLightMap.dds

[ResourceDoriHeadMetalMap.15]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriBodyNormalMap.15]
filename = .\DoriModf0000\DoriBodyNormalMap.dds

[ResourceDoriBodyDiffuse.15]
filename = .\DoriModf0000\DoriBodyDiffuse.dds

[ResourceDoriBodyLightMap.15]
filename = .\DoriModf0000\DoriBodyLightMap.dds

[ResourceDoriBodyMetalMap.15]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriFaceHeadNormalMap.15]
filename = .\DoriModf0000\DoriFaceHeadNormalMap.dds

[ResourceDoriPosition.16]
type = Buffer
stride = 40
filename = .\DoriModf0016\DoriPosition.buf

[ResourceDoriBlend.16]
type = Buffer
stride = 32
filename = .\DoriModf0016\DoriBlend.buf

[ResourceDoriTexcoord.16]
type = Buffer
stride = 12
filename = .\DoriModf0016\DoriTexcoord.buf

[ResourceDoriHeadIB.16]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0001\DoriHead.ib

[ResourceDoriBodyIB.16]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0016\DoriBody.ib

[ResourceDoriHeadNormalMap.16]
filename = .\DoriModf0000\DoriHeadNormalMap.dds

[ResourceDoriHeadDiffuse.16]
filename = .\DoriModf0000\DoriHeadDiffuse.dds

[ResourceDoriHeadLightMap.16]
filename = .\DoriModf0000\DoriHeadLightMap.dds

[ResourceDoriHeadMetalMap.16]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriBodyNormalMap.16]
filename = .\DoriModf0000\DoriBodyNormalMap.dds

[ResourceDoriBodyDiffuse.16]
filename = .\DoriModf0000\DoriBodyDiffuse.dds

[ResourceDoriBodyLightMap.16]
filename = .\DoriModf0000\DoriBodyLightMap.dds

[ResourceDoriBodyMetalMap.16]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriFaceHeadNormalMap.16]
filename = .\DoriModf0000\DoriFaceHeadNormalMap.dds

[ResourceDoriPosition.17]
type = Buffer
stride = 40
filename = .\DoriModf0017\DoriPosition.buf

[ResourceDoriBlend.17]
type = Buffer
stride = 32
filename = .\DoriModf0017\DoriBlend.buf

[ResourceDoriTexcoord.17]
type = Buffer
stride = 12
filename = .\DoriModf0017\DoriTexcoord.buf

[ResourceDoriHeadIB.17]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0003\DoriHead.ib

[ResourceDoriBodyIB.17]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0017\DoriBody.ib

[ResourceDoriHeadNormalMap.17]
filename = .\DoriModf0000\DoriHeadNormalMap.dds

[ResourceDoriHeadDiffuse.17]
filename = .\DoriModf0003\DoriHeadDiffuse.dds

[ResourceDoriHeadLightMap.17]
filename = .\DoriModf0003\DoriHeadLightMap.dds

[ResourceDoriHeadMetalMap.17]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriBodyNormalMap.17]
filename = .\DoriModf0000\DoriBodyNormalMap.dds

[ResourceDoriBodyDiffuse.17]
filename = .\DoriModf0000\DoriBodyDiffuse.dds

[ResourceDoriBodyLightMap.17]
filename = .\DoriModf0000\DoriBodyLightMap.dds

[ResourceDoriBodyMetalMap.17]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriFaceHeadNormalMap.17]
filename = .\DoriModf0000\DoriFaceHeadNormalMap.dds

[ResourceDoriPosition.18]
type = Buffer
stride = 40
filename = .\DoriModf0018\DoriPosition.buf

[ResourceDoriBlend.18]
type = Buffer
stride = 32
filename = .\DoriModf0018\DoriBlend.buf

[ResourceDoriTexcoord.18]
type = Buffer
stride = 12
filename = .\DoriModf0018\DoriTexcoord.buf

[ResourceDoriHeadIB.18]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0003\DoriHead.ib

[ResourceDoriBodyIB.18]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0018\DoriBody.ib

[ResourceDoriHeadNormalMap.18]
filename = .\DoriModf0000\DoriHeadNormalMap.dds

[ResourceDoriHeadDiffuse.18]
filename = .\DoriModf0003\DoriHeadDiffuse.dds

[ResourceDoriHeadLightMap.18]
filename = .\DoriModf0003\DoriHeadLightMap.dds

[ResourceDoriHeadMetalMap.18]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriBodyNormalMap.18]
filename = .\DoriModf0000\DoriBodyNormalMap.dds

[ResourceDoriBodyDiffuse.18]
filename = .\DoriModf0000\DoriBodyDiffuse.dds

[ResourceDoriBodyLightMap.18]
filename = .\DoriModf0000\DoriBodyLightMap.dds

[ResourceDoriBodyMetalMap.18]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriFaceHeadNormalMap.18]
filename = .\DoriModf0000\DoriFaceHeadNormalMap.dds

[ResourceDoriPosition.19]
type = Buffer
stride = 40
filename = .\DoriModf0019\DoriPosition.buf

[ResourceDoriBlend.19]
type = Buffer
stride = 32
filename = .\DoriModf0019\DoriBlend.buf

[ResourceDoriTexcoord.19]
type = Buffer
stride = 12
filename = .\DoriModf0019\DoriTexcoord.buf

[ResourceDoriHeadIB.19]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0003\DoriHead.ib

[ResourceDoriBodyIB.19]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0019\DoriBody.ib

[ResourceDoriHeadNormalMap.19]
filename = .\DoriModf0000\DoriHeadNormalMap.dds

[ResourceDoriHeadDiffuse.19]
filename = .\DoriModf0003\DoriHeadDiffuse.dds

[ResourceDoriHeadLightMap.19]
filename = .\DoriModf0003\DoriHeadLightMap.dds

[ResourceDoriHeadMetalMap.19]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriBodyNormalMap.19]
filename = .\DoriModf0000\DoriBodyNormalMap.dds

[ResourceDoriBodyDiffuse.19]
filename = .\DoriModf0000\DoriBodyDiffuse.dds

[ResourceDoriBodyLightMap.19]
filename = .\DoriModf0000\DoriBodyLightMap.dds

[ResourceDoriBodyMetalMap.19]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriFaceHeadNormalMap.19]
filename = .\DoriModf0000\DoriFaceHeadNormalMap.dds

[ResourceDoriPosition.20]
type = Buffer
stride = 40
filename = .\DoriModf0020\DoriPosition.buf

[ResourceDoriBlend.20]
type = Buffer
stride = 32
filename = .\DoriModf0020\DoriBlend.buf

[ResourceDoriTexcoord.20]
type = Buffer
stride = 12
filename = .\DoriModf0020\DoriTexcoord.buf

[ResourceDoriHeadIB.20]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0003\DoriHead.ib

[ResourceDoriBodyIB.20]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0020\DoriBody.ib

[ResourceDoriHeadNormalMap.20]
filename = .\DoriModf0000\DoriHeadNormalMap.dds

[ResourceDoriHeadDiffuse.20]
filename = .\DoriModf0003\DoriHeadDiffuse.dds

[ResourceDoriHeadLightMap.20]
filename = .\DoriModf0003\DoriHeadLightMap.dds

[ResourceDoriHeadMetalMap.20]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriBodyNormalMap.20]
filename = .\DoriModf0000\DoriBodyNormalMap.dds

[ResourceDoriBodyDiffuse.20]
filename = .\DoriModf0000\DoriBodyDiffuse.dds

[ResourceDoriBodyLightMap.20]
filename = .\DoriModf0000\DoriBodyLightMap.dds

[ResourceDoriBodyMetalMap.20]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriFaceHeadNormalMap.20]
filename = .\DoriModf0000\DoriFaceHeadNormalMap.dds

[ResourceDoriPosition.21]
type = Buffer
stride = 40
filename = .\DoriModf0021\DoriPosition.buf

[ResourceDoriBlend.21]
type = Buffer
stride = 32
filename = .\DoriModf0021\DoriBlend.buf

[ResourceDoriTexcoord.21]
type = Buffer
stride = 12
filename = .\DoriModf0021\DoriTexcoord.buf

[ResourceDoriHeadIB.21]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0003\DoriHead.ib

[ResourceDoriBodyIB.21]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DoriModf0021\DoriBody.ib

[ResourceDoriHeadNormalMap.21]
filename = .\DoriModf0000\DoriHeadNormalMap.dds

[ResourceDoriHeadDiffuse.21]
filename = .\DoriModf0003\DoriHeadDiffuse.dds

[ResourceDoriHeadLightMap.21]
filename = .\DoriModf0003\DoriHeadLightMap.dds

[ResourceDoriHeadMetalMap.21]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriBodyNormalMap.21]
filename = .\DoriModf0000\DoriBodyNormalMap.dds

[ResourceDoriBodyDiffuse.21]
filename = .\DoriModf0000\DoriBodyDiffuse.dds

[ResourceDoriBodyLightMap.21]
filename = .\DoriModf0000\DoriBodyLightMap.dds

[ResourceDoriBodyMetalMap.21]
filename = .\DoriModf0000\DoriHeadMetalMap.dds

[ResourceDoriFaceHeadNormalMap.21]
filename = .\DoriModf0000\DoriFaceHeadNormalMap.dds



; .ini generated by GIMI (Genshin-Impact-Model-Importer) mod merger script
; If you have any issues or find any bugs, please open a ticket at https://github.com/SilentNightSound/GI-Model-Importer/issues or contact SilentNightSound#7430 on discord


[Constants]
global $CharacterIB
;0=none, 1=head, 2=body, 3=dress, 4=extra, etc.

[Present]
post $CharacterIB = 0

[ResourceRefHeadDiffuse]
[ResourceRefHeadLightMap]
[ResourceRefBodyDiffuse]
[ResourceRefBodyLightMap]
[ResourceRefDressDiffuse]
[ResourceRefDressLightMap]
[ResourceRefExtraDiffuse]
[ResourceRefExtraLightMap]

; ShaderOverride ---------------------------

[ShaderRegexCharReflection]
shader_model = ps_5_0
run = CommandListReflectionTexture
[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

[ShaderRegexCharOutline]
shader_model = ps_5_0
run = CommandListOutline
[ShaderRegexCharOutline.pattern]
mov o\d+\.\w+, l\(\d+\)\n
mov o\d+\.\w+, r\d+\.\w+\n
mov o\d+\.\w+, l\(\d+\.\d+\)

; OPTIONAL: shader hash for reflection. replace this incase regex does not work.
[ShaderOverrideReflectionTexture]
hash=26eb354bad491b6f
allow_duplicate_hash=overrule
run=CommandListReflectionTexture

[ShaderOverrideReflectionTextureDress]
hash=b04806463c319e15
allow_duplicate_hash=overrule
run=CommandListReflectionTexture

[ShaderOverrideReflectionTextureBlink]
hash=167cf8a1f4f9ed4f
allow_duplicate_hash=overrule
run=CommandListReflectionTexture

; OPTIONAL: shader hash for outline. replace this incase regex does not work.
[ShaderOverrideOutlineTexture]
hash=f6eb050ef75da1b7
allow_duplicate_hash=overrule
run=CommandListOutline

; CommandList -------------------------

[CommandListReflectionTexture]
if $CharacterIB != 0
    if $CharacterIB == 1
        ps-t0 = copy ResourceRefHeadDiffuse
    else if $CharacterIB == 2
        ps-t0 = copy ResourceRefBodyDiffuse
    else if $CharacterIB == 3
        ps-t0 = copy ResourceRefDressDiffuse
    else if $CharacterIB == 4
        ps-t0 = copy ResourceRefExtraDiffuse    
    endif
drawindexed=auto
$CharacterIB = 0
endif

[CommandListOutline]
if $CharacterIB != 0
    if $CharacterIB == 1
        ps-t1 = copy ResourceRefHeadLightMap
    else if $CharacterIB == 2
        ps-t1 = copy ResourceRefBodyLightMap
    else if $CharacterIB == 3
        ps-t1 = copy ResourceRefDressLightMap
    else if $CharacterIB == 4
        ps-t1 = copy ResourceRefExtraLightMap
    endif
drawindexed=auto
$CharacterIB = 0
endif


; 4.1 Character Fix 
[TextureOverride41FixVertexLimitRaise]
hash = 86e25bac
