; Merged Mod: .\DaMod1\Diona.ini, .\DaMod2\Diona.ini, .\DaMod3\Diona.ini, .\DaMod4\Diona.ini, .\DaMod5\Diona.ini, .\DaMod6\Diona.ini, .\DaMod7\Diona.ini, .\DaMod8\Diona.ini, .\DaMod9\Diona.ini, .\DaMod91\Diona.ini

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

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

[KeySwap]
condition = $ActiveCharacter == 1
key = 6
type = cycle
$swapvar = 0,1,2,3,4,5,6,7,8,9

[Present]
post $ActiveCharacter = 0

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

[TextureOverrideDionaPosition]
hash = e8083f19
run = CommandListDionaPosition
$ActiveCharacter = 1

[TextureOverrideDionaBlend]
hash = 558b43fe
run = CommandListDionaBlend

[TextureOverrideDionaTexcoord]
hash = 9fb434ae
run = CommandListDionaTexcoord

[TextureOverrideDionaVertexLimitRaise]
hash = 3d3acefa

[TextureOverrideDionaIB]
hash = 4cde183c
run = CommandListDionaIB

[TextureOverrideDionaHead]
hash = 4cde183c
match_first_index = 0
run = CommandListDionaHead

[TextureOverrideDionaBody]
hash = 4cde183c
match_first_index = 11076
run = CommandListDionaBody

[TextureOverrideDionaFaceHeadDiffuse]
hash = 78267c94
run = CommandListDionaFaceHeadDiffuse

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

[CommandListDionaPosition]
if $swapvar == 0
	vb0 = ResourceDionaPosition.0
else if $swapvar == 1
	vb0 = ResourceDionaPosition.1
else if $swapvar == 2
	vb0 = ResourceDionaPosition.2
else if $swapvar == 3
	vb0 = ResourceDionaPosition.3
else if $swapvar == 4
	vb0 = ResourceDionaPosition.4
else if $swapvar == 5
	vb0 = ResourceDionaPosition.5
else if $swapvar == 6
	vb0 = ResourceDionaPosition.6
else if $swapvar == 7
	vb0 = ResourceDionaPosition.7
else if $swapvar == 8
	vb0 = ResourceDionaPosition.8
else if $swapvar == 9
	vb0 = ResourceDionaPosition.9
endif

[CommandListDionaBlend]
if $swapvar == 0
	vb1 = ResourceDionaBlend.0
	handling = skip
	draw = 62142,0
else if $swapvar == 1
	vb1 = ResourceDionaBlend.1
	handling = skip
	draw = 60729,0
else if $swapvar == 2
	vb1 = ResourceDionaBlend.2
	handling = skip
	draw = 60475,0
else if $swapvar == 3
	vb1 = ResourceDionaBlend.3
	handling = skip
	draw = 59125,0
else if $swapvar == 4
	vb1 = ResourceDionaBlend.4
	handling = skip
	draw = 54404,0
else if $swapvar == 5
	vb1 = ResourceDionaBlend.5
	handling = skip
	draw = 55817,0
else if $swapvar == 6
	vb1 = ResourceDionaBlend.6
	handling = skip
	draw = 53054,0
else if $swapvar == 7
	vb1 = ResourceDionaBlend.7
	handling = skip
	draw = 54150,0
else if $swapvar == 8
	vb1 = ResourceDionaBlend.8
	handling = skip
	draw = 52800,0
else if $swapvar == 9
	vb1 = ResourceDionaBlend.9
	handling = skip
	draw = 52342,0
endif

[CommandListDionaTexcoord]
if $swapvar == 0
	vb1 = ResourceDionaTexcoord.0
else if $swapvar == 1
	vb1 = ResourceDionaTexcoord.1
else if $swapvar == 2
	vb1 = ResourceDionaTexcoord.2
else if $swapvar == 3
	vb1 = ResourceDionaTexcoord.3
else if $swapvar == 4
	vb1 = ResourceDionaTexcoord.4
else if $swapvar == 5
	vb1 = ResourceDionaTexcoord.5
else if $swapvar == 6
	vb1 = ResourceDionaTexcoord.6
else if $swapvar == 7
	vb1 = ResourceDionaTexcoord.7
else if $swapvar == 8
	vb1 = ResourceDionaTexcoord.8
else if $swapvar == 9
	vb1 = ResourceDionaTexcoord.9
endif

[CommandListDionaIB]
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
endif

[CommandListDionaHead]
if $swapvar == 0
	ib = ResourceDionaHeadIB.0
	ps-t0 = ResourceDionaHeadDiffuse.0
	ps-t1 = ResourceDionaHeadLightMap.0
else if $swapvar == 1
	ib = ResourceDionaHeadIB.1
	ps-t0 = ResourceDionaHeadDiffuse.1
	ps-t1 = ResourceDionaHeadLightMap.1
else if $swapvar == 2
	ib = ResourceDionaHeadIB.2
	ps-t0 = ResourceDionaHeadDiffuse.2
	ps-t1 = ResourceDionaHeadLightMap.2
else if $swapvar == 3
	ib = ResourceDionaHeadIB.3
	ps-t0 = ResourceDionaHeadDiffuse.3
	ps-t1 = ResourceDionaHeadLightMap.3
else if $swapvar == 4
	ib = ResourceDionaHeadIB.4
	ps-t0 = ResourceDionaHeadDiffuse.4
	ps-t1 = ResourceDionaHeadLightMap.4
else if $swapvar == 5
	ib = ResourceDionaHeadIB.5
	ps-t0 = ResourceDionaHeadDiffuse.5
	ps-t1 = ResourceDionaHeadLightMap.5
else if $swapvar == 6
	ib = ResourceDionaHeadIB.6
	ps-t0 = ResourceDionaHeadDiffuse.6
	ps-t1 = ResourceDionaHeadLightMap.6
else if $swapvar == 7
	ib = ResourceDionaHeadIB.7
	ps-t0 = ResourceDionaHeadDiffuse.7
	ps-t1 = ResourceDionaHeadLightMap.7
else if $swapvar == 8
	ib = ResourceDionaHeadIB.8
	ps-t0 = ResourceDionaHeadDiffuse.8
	ps-t1 = ResourceDionaHeadLightMap.8
else if $swapvar == 9
	ib = ResourceDionaHeadIB.9
	ps-t0 = ResourceDionaHeadDiffuse.9
	ps-t1 = ResourceDionaHeadLightMap.9
endif

[CommandListDionaBody]
if $swapvar == 0
	ib = ResourceDionaBodyIB.0
	ps-t0 = ResourceDionaBodyDiffuse.0
	ps-t1 = ResourceDionaBodyLightMap.0
else if $swapvar == 1
	ib = ResourceDionaBodyIB.1
	ps-t0 = ResourceDionaBodyDiffuse.1
	ps-t1 = ResourceDionaBodyLightMap.1
else if $swapvar == 2
	ib = ResourceDionaBodyIB.2
	ps-t0 = ResourceDionaBodyDiffuse.2
	ps-t1 = ResourceDionaBodyLightMap.2
else if $swapvar == 3
	ib = ResourceDionaBodyIB.3
	ps-t0 = ResourceDionaBodyDiffuse.3
	ps-t1 = ResourceDionaBodyLightMap.3
else if $swapvar == 4
	ib = ResourceDionaBodyIB.4
	ps-t0 = ResourceDionaBodyDiffuse.4
	ps-t1 = ResourceDionaBodyLightMap.4
else if $swapvar == 5
	ib = ResourceDionaBodyIB.5
	ps-t0 = ResourceDionaBodyDiffuse.5
	ps-t1 = ResourceDionaBodyLightMap.5
else if $swapvar == 6
	ib = ResourceDionaBodyIB.6
	ps-t0 = ResourceDionaBodyDiffuse.6
	ps-t1 = ResourceDionaBodyLightMap.6
else if $swapvar == 7
	ib = ResourceDionaBodyIB.7
	ps-t0 = ResourceDionaBodyDiffuse.7
	ps-t1 = ResourceDionaBodyLightMap.7
else if $swapvar == 8
	ib = ResourceDionaBodyIB.8
	ps-t0 = ResourceDionaBodyDiffuse.8
	ps-t1 = ResourceDionaBodyLightMap.8
else if $swapvar == 9
	ib = ResourceDionaBodyIB.9
	ps-t0 = ResourceDionaBodyDiffuse.9
	ps-t1 = ResourceDionaBodyLightMap.9
endif

[CommandListDionaFaceHeadDiffuse]
if $swapvar == 0
	ps-t0 = ResourceDionaFaceHeadDiffuse.0
else if $swapvar == 1
	ps-t0 = ResourceDionaFaceHeadDiffuse.1
else if $swapvar == 2
	ps-t0 = ResourceDionaFaceHeadDiffuse.2
else if $swapvar == 3
	ps-t0 = ResourceDionaFaceHeadDiffuse.3
else if $swapvar == 4
	ps-t0 = ResourceDionaFaceHeadDiffuse.4
else if $swapvar == 5
	ps-t0 = ResourceDionaFaceHeadDiffuse.5
else if $swapvar == 6
	ps-t0 = ResourceDionaFaceHeadDiffuse.6
else if $swapvar == 7
	ps-t0 = ResourceDionaFaceHeadDiffuse.7
else if $swapvar == 8
	ps-t0 = ResourceDionaFaceHeadDiffuse.8
else if $swapvar == 9
	ps-t0 = ResourceDionaFaceHeadDiffuse.9
endif

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

[ResourceDionaPosition.0]
type = Buffer
stride = 40
filename = .\DaMod1\DionaPosition.buf

[ResourceDionaBlend.0]
type = Buffer
stride = 32
filename = .\DaMod1\DionaBlend.buf

[ResourceDionaTexcoord.0]
type = Buffer
stride = 12
filename = .\DaMod1\DionaTexcoord.buf

[ResourceDionaHeadIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DaMod1\DionaHead.ib

[ResourceDionaBodyIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DaMod1\DionaBody.ib

[ResourceDionaHeadDiffuse.0]
filename = .\DaMod1\DionaHeadDiffuse.dds

[ResourceDionaHeadLightMap.0]
filename = .\DaMod1\DionaHeadLightMap.dds

[ResourceDionaBodyDiffuse.0]
filename = .\DaMod1\DionaBodyDiffuse.dds

[ResourceDionaBodyLightMap.0]
filename = .\DaMod1\DionaBodyLightMap.dds

[ResourceDionaFaceHeadDiffuse.0]
filename = .\DaMod1\DionaFaceHeadDiffuse.dds

[ResourceDionaPosition.1]
type = Buffer
stride = 40
filename = .\DaMod2\DionaPosition.buf

[ResourceDionaBlend.1]
type = Buffer
stride = 32
filename = .\DaMod2\DionaBlend.buf

[ResourceDionaTexcoord.1]
type = Buffer
stride = 12
filename = .\DaMod2\DionaTexcoord.buf

[ResourceDionaHeadIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DaMod2\DionaHead.ib

[ResourceDionaBodyIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DaMod2\DionaBody.ib

[ResourceDionaHeadDiffuse.1]
filename = .\DaMod2\DionaHeadDiffuse.dds

[ResourceDionaHeadLightMap.1]
filename = .\DaMod2\DionaHeadLightMap.dds

[ResourceDionaBodyDiffuse.1]
filename = .\DaMod2\DionaBodyDiffuse.dds

[ResourceDionaBodyLightMap.1]
filename = .\DaMod2\DionaBodyLightMap.dds

[ResourceDionaFaceHeadDiffuse.1]
filename = .\DaMod2\DionaFaceHeadDiffuse.dds

[ResourceDionaPosition.2]
type = Buffer
stride = 40
filename = .\DaMod3\DionaPosition.buf

[ResourceDionaBlend.2]
type = Buffer
stride = 32
filename = .\DaMod3\DionaBlend.buf

[ResourceDionaTexcoord.2]
type = Buffer
stride = 12
filename = .\DaMod3\DionaTexcoord.buf

[ResourceDionaHeadIB.2]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DaMod3\DionaHead.ib

[ResourceDionaBodyIB.2]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DaMod3\DionaBody.ib

[ResourceDionaHeadDiffuse.2]
filename = .\DaMod3\DionaHeadDiffuse.dds

[ResourceDionaHeadLightMap.2]
filename = .\DaMod3\DionaHeadLightMap.dds

[ResourceDionaBodyDiffuse.2]
filename = .\DaMod3\DionaBodyDiffuse.dds

[ResourceDionaBodyLightMap.2]
filename = .\DaMod3\DionaBodyLightMap.dds

[ResourceDionaFaceHeadDiffuse.2]
filename = .\DaMod3\DionaFaceHeadDiffuse.dds

[ResourceDionaPosition.3]
type = Buffer
stride = 40
filename = .\DaMod4\DionaPosition.buf

[ResourceDionaBlend.3]
type = Buffer
stride = 32
filename = .\DaMod4\DionaBlend.buf

[ResourceDionaTexcoord.3]
type = Buffer
stride = 12
filename = .\DaMod4\DionaTexcoord.buf

[ResourceDionaHeadIB.3]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DaMod4\DionaHead.ib

[ResourceDionaBodyIB.3]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DaMod4\DionaBody.ib

[ResourceDionaHeadDiffuse.3]
filename = .\DaMod4\DionaHeadDiffuse.dds

[ResourceDionaHeadLightMap.3]
filename = .\DaMod4\DionaHeadLightMap.dds

[ResourceDionaBodyDiffuse.3]
filename = .\DaMod4\DionaBodyDiffuse.dds

[ResourceDionaBodyLightMap.3]
filename = .\DaMod4\DionaBodyLightMap.dds

[ResourceDionaFaceHeadDiffuse.3]
filename = .\DaMod4\DionaFaceHeadDiffuse.dds

[ResourceDionaPosition.4]
type = Buffer
stride = 40
filename = .\DaMod5\DionaPosition.buf

[ResourceDionaBlend.4]
type = Buffer
stride = 32
filename = .\DaMod5\DionaBlend.buf

[ResourceDionaTexcoord.4]
type = Buffer
stride = 12
filename = .\DaMod5\DionaTexcoord.buf

[ResourceDionaHeadIB.4]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DaMod5\DionaHead.ib

[ResourceDionaBodyIB.4]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DaMod5\DionaBody.ib

[ResourceDionaHeadDiffuse.4]
filename = .\DaMod5\DionaHeadDiffuse.dds

[ResourceDionaHeadLightMap.4]
filename = .\DaMod5\DionaHeadLightMap.dds

[ResourceDionaBodyDiffuse.4]
filename = .\DaMod5\DionaBodyDiffuse.dds

[ResourceDionaBodyLightMap.4]
filename = .\DaMod5\DionaBodyLightMap.dds

[ResourceDionaFaceHeadDiffuse.4]
filename = .\DaMod5\DionaFaceHeadDiffuse.dds

[ResourceDionaPosition.5]
type = Buffer
stride = 40
filename = .\DaMod6\DionaPosition.buf

[ResourceDionaBlend.5]
type = Buffer
stride = 32
filename = .\DaMod6\DionaBlend.buf

[ResourceDionaTexcoord.5]
type = Buffer
stride = 12
filename = .\DaMod6\DionaTexcoord.buf

[ResourceDionaHeadIB.5]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DaMod6\DionaHead.ib

[ResourceDionaBodyIB.5]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DaMod6\DionaBody.ib

[ResourceDionaHeadDiffuse.5]
filename = .\DaMod6\DionaHeadDiffuse.dds

[ResourceDionaHeadLightMap.5]
filename = .\DaMod6\DionaHeadLightMap.dds

[ResourceDionaBodyDiffuse.5]
filename = .\DaMod6\DionaBodyDiffuse.dds

[ResourceDionaBodyLightMap.5]
filename = .\DaMod6\DionaBodyLightMap.dds

[ResourceDionaFaceHeadDiffuse.5]
filename = .\DaMod6\DionaFaceHeadDiffuse.dds

[ResourceDionaPosition.6]
type = Buffer
stride = 40
filename = .\DaMod7\DionaPosition.buf

[ResourceDionaBlend.6]
type = Buffer
stride = 32
filename = .\DaMod7\DionaBlend.buf

[ResourceDionaTexcoord.6]
type = Buffer
stride = 12
filename = .\DaMod7\DionaTexcoord.buf

[ResourceDionaHeadIB.6]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DaMod7\DionaHead.ib

[ResourceDionaBodyIB.6]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DaMod7\DionaBody.ib

[ResourceDionaHeadDiffuse.6]
filename = .\DaMod7\DionaHeadDiffuse.dds

[ResourceDionaHeadLightMap.6]
filename = .\DaMod7\DionaHeadLightMap.dds

[ResourceDionaBodyDiffuse.6]
filename = .\DaMod7\DionaBodyDiffuse.dds

[ResourceDionaBodyLightMap.6]
filename = .\DaMod7\DionaBodyLightMap.dds

[ResourceDionaFaceHeadDiffuse.6]
filename = .\DaMod7\DionaFaceHeadDiffuse.dds

[ResourceDionaPosition.7]
type = Buffer
stride = 40
filename = .\DaMod8\DionaPosition.buf

[ResourceDionaBlend.7]
type = Buffer
stride = 32
filename = .\DaMod8\DionaBlend.buf

[ResourceDionaTexcoord.7]
type = Buffer
stride = 12
filename = .\DaMod8\DionaTexcoord.buf

[ResourceDionaHeadIB.7]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DaMod8\DionaHead.ib

[ResourceDionaBodyIB.7]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DaMod8\DionaBody.ib

[ResourceDionaHeadDiffuse.7]
filename = .\DaMod8\DionaHeadDiffuse.dds

[ResourceDionaHeadLightMap.7]
filename = .\DaMod8\DionaHeadLightMap.dds

[ResourceDionaBodyDiffuse.7]
filename = .\DaMod8\DionaBodyDiffuse.dds

[ResourceDionaBodyLightMap.7]
filename = .\DaMod8\DionaBodyLightMap.dds

[ResourceDionaFaceHeadDiffuse.7]
filename = .\DaMod8\DionaFaceHeadDiffuse.dds

[ResourceDionaPosition.8]
type = Buffer
stride = 40
filename = .\DaMod9\DionaPosition.buf

[ResourceDionaBlend.8]
type = Buffer
stride = 32
filename = .\DaMod9\DionaBlend.buf

[ResourceDionaTexcoord.8]
type = Buffer
stride = 12
filename = .\DaMod9\DionaTexcoord.buf

[ResourceDionaHeadIB.8]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DaMod9\DionaHead.ib

[ResourceDionaBodyIB.8]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DaMod9\DionaBody.ib

[ResourceDionaHeadDiffuse.8]
filename = .\DaMod9\DionaHeadDiffuse.dds

[ResourceDionaHeadLightMap.8]
filename = .\DaMod9\DionaHeadLightMap.dds

[ResourceDionaBodyDiffuse.8]
filename = .\DaMod9\DionaBodyDiffuse.dds

[ResourceDionaBodyLightMap.8]
filename = .\DaMod9\DionaBodyLightMap.dds

[ResourceDionaFaceHeadDiffuse.8]
filename = .\DaMod9\DionaFaceHeadDiffuse.dds

[ResourceDionaPosition.9]
type = Buffer
stride = 40
filename = .\DaMod91\DionaPosition.buf

[ResourceDionaBlend.9]
type = Buffer
stride = 32
filename = .\DaMod91\DionaBlend.buf

[ResourceDionaTexcoord.9]
type = Buffer
stride = 12
filename = .\DaMod91\DionaTexcoord.buf

[ResourceDionaHeadIB.9]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DaMod91\DionaHead.ib

[ResourceDionaBodyIB.9]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DaMod91\DionaBody.ib

[ResourceDionaHeadDiffuse.9]
filename = .\DaMod91\DionaHeadDiffuse.dds

[ResourceDionaHeadLightMap.9]
filename = .\DaMod91\DionaHeadLightMap.dds

[ResourceDionaBodyDiffuse.9]
filename = .\DaMod91\DionaBodyDiffuse.dds

[ResourceDionaBodyLightMap.9]
filename = .\DaMod91\DionaBodyLightMap.dds

[ResourceDionaFaceHeadDiffuse.9]
filename = .\DaMod91\DionaFaceHeadDiffuse.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