; Merged Mod: .\DehyaMod_v1\Dehya.ini, .\DehyaMod_v2\Dehya.ini, .\DehyaMod_v3\Dehya.ini, .\DehyaMod_v4\Dehya.ini, .\DehyaMod_v5\Dehya.ini, .\DehyaMod_v6\Dehya.ini

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

[Constants]
global persist $swapvar = 0
global $active
global $creditinfo = 0

[KeySwap]
condition = $active == 1
key = vk_right
back = vk_left
type = cycle
$swapvar = 0,1,2,3,4,5
$creditinfo = 0

[Present]
post $active = 0

; Shader ------------------------------

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

[TextureOverrideDehyaPosition]
hash = 9aeecbcb
run = CommandListDehyaPosition
$active = 1

[TextureOverrideDehyaBlend]
hash = 31ea99dd
run = CommandListDehyaBlend

[TextureOverrideDehyaTexcoord]
hash = 3feafd9a
run = CommandListDehyaTexcoord

[TextureOverrideDehyaVertexLimitRaise]
hash = 1f2a9e86

[TextureOverrideDehyaIB]
hash = 63e3e58e
run = CommandListDehyaIB

[TextureOverrideDehyaHead]
hash = 63e3e58e
match_first_index = 0
run = CommandListDehyaHead
run = CommandList\global\ORFix\ORFix

[TextureOverrideDehyaBody]
hash = 63e3e58e
match_first_index = 25566
run = CommandListDehyaBody
run = CommandList\global\ORFix\ORFix

[TextureOverride41FixVertexLimitRaise0]
hash = 96cfb1a1

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

[CommandListDehyaPosition]
if $swapvar == 0
	vb0 = ResourceDehyaPosition.0
else if $swapvar == 1
	vb0 = ResourceDehyaPosition.1
else if $swapvar == 2
	vb0 = ResourceDehyaPosition.2
else if $swapvar == 3
	vb0 = ResourceDehyaPosition.3
else if $swapvar == 4
	vb0 = ResourceDehyaPosition.4
else if $swapvar == 5
	vb0 = ResourceDehyaPosition.5
endif

[CommandListDehyaBlend]
if $swapvar == 0
	vb1 = ResourceDehyaBlend.0
	handling = skip
	draw = 46205,0
else if $swapvar == 1
	vb1 = ResourceDehyaBlend.1
	handling = skip
	draw = 46206,0
else if $swapvar == 2
	vb1 = ResourceDehyaBlend.2
	handling = skip
	draw = 48142,0
else if $swapvar == 3
	vb1 = ResourceDehyaBlend.3
	handling = skip
	draw = 48144,0
else if $swapvar == 4
	vb1 = ResourceDehyaBlend.4
	handling = skip
	draw = 48144,0
else if $swapvar == 5
	vb1 = ResourceDehyaBlend.5
	handling = skip
	draw = 48143,0
endif

[CommandListDehyaTexcoord]
if $swapvar == 0
	vb1 = ResourceDehyaTexcoord.0
else if $swapvar == 1
	vb1 = ResourceDehyaTexcoord.1
else if $swapvar == 2
	vb1 = ResourceDehyaTexcoord.2
else if $swapvar == 3
	vb1 = ResourceDehyaTexcoord.3
else if $swapvar == 4
	vb1 = ResourceDehyaTexcoord.4
else if $swapvar == 5
	vb1 = ResourceDehyaTexcoord.5
endif

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

[CommandListDehyaHead]
if $swapvar == 0
	ib = ResourceDehyaHeadIB.0
	ps-t0 = ResourceDehyaHeadDiffuse.0
	ps-t1 = ResourceDehyaHeadLightMap.0
	ps-t2 = ResourceDehyaHeadShadow.0
	ps-t3 = ResourceDehyaHeadMetalMap.0
else if $swapvar == 1
	ib = ResourceDehyaHeadIB.1
	ps-t0 = ResourceDehyaHeadDiffuse.1
	ps-t1 = ResourceDehyaHeadLightMap.1
	ps-t2 = ResourceDehyaHeadShadow.1
	ps-t3 = ResourceDehyaHeadMetalMap.1
else if $swapvar == 2
	ib = ResourceDehyaHeadIB.2
	ps-t0 = ResourceDehyaHeadDiffuse.2
	ps-t1 = ResourceDehyaHeadLightMap.2
	ps-t2 = ResourceDehyaHeadShadow.2
	ps-t3 = ResourceDehyaHeadMetalMap.2
else if $swapvar == 3
	ib = ResourceDehyaHeadIB.3
	ps-t0 = ResourceDehyaHeadDiffuse.3
	ps-t1 = ResourceDehyaHeadLightMap.3
	ps-t2 = ResourceDehyaHeadShadow.3
	ps-t3 = ResourceDehyaHeadMetalMap.3
else if $swapvar == 4
	ib = ResourceDehyaHeadIB.4
	ps-t0 = ResourceDehyaHeadDiffuse.4
	ps-t1 = ResourceDehyaHeadLightMap.4
	ps-t2 = ResourceDehyaHeadShadow.4
	ps-t3 = ResourceDehyaHeadMetalMap.4
else if $swapvar == 5
	ib = ResourceDehyaHeadIB.5
	ps-t0 = ResourceDehyaHeadDiffuse.5
	ps-t1 = ResourceDehyaHeadLightMap.5
	ps-t2 = ResourceDehyaHeadShadow.5
	ps-t3 = ResourceDehyaHeadMetalMap.5
endif

[CommandListDehyaBody]
if $swapvar == 0
	ib = ResourceDehyaBodyIB.0
	ps-t0 = ResourceDehyaBodyDiffuse.0
	ps-t1 = ResourceDehyaBodyLightMap.0
	ps-t2 = ResourceDehyaBodyShadow.0
	ps-t3 = ResourceDehyaBodyMetalMap.0
else if $swapvar == 1
	ib = ResourceDehyaBodyIB.1
	ps-t0 = ResourceDehyaBodyDiffuse.1
	ps-t1 = ResourceDehyaBodyLightMap.1
	ps-t2 = ResourceDehyaBodyShadow.1
	ps-t3 = ResourceDehyaBodyMetalMap.1
else if $swapvar == 2
	ib = ResourceDehyaBodyIB.2
	ps-t0 = ResourceDehyaBodyDiffuse.2
	ps-t1 = ResourceDehyaBodyLightMap.2
	ps-t2 = ResourceDehyaBodyShadow.2
	ps-t3 = ResourceDehyaBodyMetalMap.2
else if $swapvar == 3
	ib = ResourceDehyaBodyIB.3
	ps-t0 = ResourceDehyaBodyDiffuse.3
	ps-t1 = ResourceDehyaBodyLightMap.3
	ps-t2 = ResourceDehyaBodyShadow.3
	ps-t3 = ResourceDehyaBodyMetalMap.3
else if $swapvar == 4
	ib = ResourceDehyaBodyIB.4
	ps-t0 = ResourceDehyaBodyDiffuse.4
	ps-t1 = ResourceDehyaBodyLightMap.4
	ps-t2 = ResourceDehyaBodyShadow.4
	ps-t3 = ResourceDehyaBodyMetalMap.4
else if $swapvar == 5
	ib = ResourceDehyaBodyIB.5
	ps-t0 = ResourceDehyaBodyDiffuse.5
	ps-t1 = ResourceDehyaBodyLightMap.5
	ps-t2 = ResourceDehyaBodyShadow.5
	ps-t3 = ResourceDehyaBodyMetalMap.5
endif

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

[ResourceDehyaPosition.0]
type = Buffer
stride = 40
filename = .\DehyaMod_v1\DehyaPosition.buf

[ResourceDehyaBlend.0]
type = Buffer
stride = 32
filename = .\DehyaMod_v1\DehyaBlend.buf

[ResourceDehyaTexcoord.0]
type = Buffer
stride = 12
filename = .\DehyaMod_v1\DehyaTexcoord.buf

[ResourceDehyaHeadIB.0]
type = Buffer
format = DXGI_FORMAT_R16_UINT
filename = .\DehyaMod_v1\DehyaHead.ib

[ResourceDehyaBodyIB.0]
type = Buffer
format = DXGI_FORMAT_R16_UINT
filename = .\DehyaMod_v1\DehyaBody.ib

[ResourceDehyaHeadDiffuse.0]
filename = .\DehyaMod_v1\DehyaHeadDiffuse.dds

[ResourceDehyaHeadLightMap.0]
filename = .\DehyaMod_v1\DehyaHeadLightMap.dds

[ResourceDehyaHeadShadow.0]
filename = .\DehyaMod_v1\DehyaHeadShadow.dds

[ResourceDehyaHeadMetalMap.0]
filename = .\DehyaMod_v1\DehyaHeadMetalMap.dds

[ResourceDehyaBodyDiffuse.0]
filename = .\DehyaMod_v1\DehyaBodyDiffuse.dds

[ResourceDehyaBodyLightMap.0]
filename = .\DehyaMod_v1\DehyaBodyLightMap.dds

[ResourceDehyaBodyShadow.0]
filename = .\DehyaMod_v1\DehyaBodyShadow.dds

[ResourceDehyaBodyMetalMap.0]
filename = .\DehyaMod_v1\DehyaBodyMetalMap.dds

[ResourceDehyaPosition.1]
type = Buffer
stride = 40
filename = .\DehyaMod_v2\DehyaPosition.buf

[ResourceDehyaBlend.1]
type = Buffer
stride = 32
filename = .\DehyaMod_v2\DehyaBlend.buf

[ResourceDehyaTexcoord.1]
type = Buffer
stride = 12
filename = .\DehyaMod_v2\DehyaTexcoord.buf

[ResourceDehyaHeadIB.1]
type = Buffer
format = DXGI_FORMAT_R16_UINT
filename = .\DehyaMod_v2\DehyaHead.ib

[ResourceDehyaBodyIB.1]
type = Buffer
format = DXGI_FORMAT_R16_UINT
filename = .\DehyaMod_v2\DehyaBody.ib

[ResourceDehyaHeadDiffuse.1]
filename = .\DehyaMod_v2\DehyaHeadDiffuse.dds

[ResourceDehyaHeadLightMap.1]
filename = .\DehyaMod_v2\DehyaHeadLightMap.dds

[ResourceDehyaHeadShadow.1]
filename = .\DehyaMod_v2\DehyaHeadShadow.dds

[ResourceDehyaHeadMetalMap.1]
filename = .\DehyaMod_v2\DehyaHeadMetalMap.dds

[ResourceDehyaBodyDiffuse.1]
filename = .\DehyaMod_v2\DehyaBodyDiffuse.dds

[ResourceDehyaBodyLightMap.1]
filename = .\DehyaMod_v2\DehyaBodyLightMap.dds

[ResourceDehyaBodyShadow.1]
filename = .\DehyaMod_v2\DehyaBodyShadow.dds

[ResourceDehyaBodyMetalMap.1]
filename = .\DehyaMod_v2\DehyaBodyMetalMap.dds

[ResourceDehyaPosition.2]
type = Buffer
stride = 40
filename = .\DehyaMod_v3\DehyaPosition.buf

[ResourceDehyaBlend.2]
type = Buffer
stride = 32
filename = .\DehyaMod_v3\DehyaBlend.buf

[ResourceDehyaTexcoord.2]
type = Buffer
stride = 12
filename = .\DehyaMod_v3\DehyaTexcoord.buf

[ResourceDehyaHeadIB.2]
type = Buffer
format = DXGI_FORMAT_R16_UINT
filename = .\DehyaMod_v3\DehyaHead.ib

[ResourceDehyaBodyIB.2]
type = Buffer
format = DXGI_FORMAT_R16_UINT
filename = .\DehyaMod_v3\DehyaBody.ib

[ResourceDehyaHeadDiffuse.2]
filename = .\DehyaMod_v3\DehyaHeadDiffuse.dds

[ResourceDehyaHeadLightMap.2]
filename = .\DehyaMod_v3\DehyaHeadLightMap.dds

[ResourceDehyaHeadShadow.2]
filename = .\DehyaMod_v3\DehyaHeadShadow.dds

[ResourceDehyaHeadMetalMap.2]
filename = .\DehyaMod_v3\DehyaHeadMetalMap.dds

[ResourceDehyaBodyDiffuse.2]
filename = .\DehyaMod_v3\DehyaBodyDiffuse.dds

[ResourceDehyaBodyLightMap.2]
filename = .\DehyaMod_v3\DehyaBodyLightMap.dds

[ResourceDehyaBodyShadow.2]
filename = .\DehyaMod_v3\DehyaBodyShadow.dds

[ResourceDehyaBodyMetalMap.2]
filename = .\DehyaMod_v3\DehyaBodyMetalMap.dds

[ResourceDehyaPosition.3]
type = Buffer
stride = 40
filename = .\DehyaMod_v4\DehyaPosition.buf

[ResourceDehyaBlend.3]
type = Buffer
stride = 32
filename = .\DehyaMod_v4\DehyaBlend.buf

[ResourceDehyaTexcoord.3]
type = Buffer
stride = 12
filename = .\DehyaMod_v4\DehyaTexcoord.buf

[ResourceDehyaHeadIB.3]
type = Buffer
format = DXGI_FORMAT_R16_UINT
filename = .\DehyaMod_v4\DehyaHead.ib

[ResourceDehyaBodyIB.3]
type = Buffer
format = DXGI_FORMAT_R16_UINT
filename = .\DehyaMod_v4\DehyaBody.ib

[ResourceDehyaHeadDiffuse.3]
filename = .\DehyaMod_v4\DehyaHeadDiffuse.dds

[ResourceDehyaHeadLightMap.3]
filename = .\DehyaMod_v4\DehyaHeadLightMap.dds

[ResourceDehyaHeadShadow.3]
filename = .\DehyaMod_v4\DehyaHeadShadow.dds

[ResourceDehyaHeadMetalMap.3]
filename = .\DehyaMod_v4\DehyaHeadMetalMap.dds

[ResourceDehyaBodyDiffuse.3]
filename = .\DehyaMod_v4\DehyaBodyDiffuse.dds

[ResourceDehyaBodyLightMap.3]
filename = .\DehyaMod_v4\DehyaBodyLightMap.dds

[ResourceDehyaBodyShadow.3]
filename = .\DehyaMod_v4\DehyaBodyShadow.dds

[ResourceDehyaBodyMetalMap.3]
filename = .\DehyaMod_v4\DehyaBodyMetalMap.dds

[ResourceDehyaPosition.4]
type = Buffer
stride = 40
filename = .\DehyaMod_v5\DehyaPosition.buf

[ResourceDehyaBlend.4]
type = Buffer
stride = 32
filename = .\DehyaMod_v5\DehyaBlend.buf

[ResourceDehyaTexcoord.4]
type = Buffer
stride = 12
filename = .\DehyaMod_v5\DehyaTexcoord.buf

[ResourceDehyaHeadIB.4]
type = Buffer
format = DXGI_FORMAT_R16_UINT
filename = .\DehyaMod_v5\DehyaHead.ib

[ResourceDehyaBodyIB.4]
type = Buffer
format = DXGI_FORMAT_R16_UINT
filename = .\DehyaMod_v5\DehyaBody.ib

[ResourceDehyaHeadDiffuse.4]
filename = .\DehyaMod_v5\DehyaHeadDiffuse.dds

[ResourceDehyaHeadLightMap.4]
filename = .\DehyaMod_v5\DehyaHeadLightMap.dds

[ResourceDehyaHeadShadow.4]
filename = .\DehyaMod_v5\DehyaHeadShadow.dds

[ResourceDehyaHeadMetalMap.4]
filename = .\DehyaMod_v5\DehyaHeadMetalMap.dds

[ResourceDehyaBodyDiffuse.4]
filename = .\DehyaMod_v5\DehyaBodyDiffuse.dds

[ResourceDehyaBodyLightMap.4]
filename = .\DehyaMod_v5\DehyaBodyLightMap.dds

[ResourceDehyaBodyShadow.4]
filename = .\DehyaMod_v5\DehyaBodyShadow.dds

[ResourceDehyaBodyMetalMap.4]
filename = .\DehyaMod_v5\DehyaBodyMetalMap.dds

[ResourceDehyaPosition.5]
type = Buffer
stride = 40
filename = .\DehyaMod_v6\DehyaPosition.buf

[ResourceDehyaBlend.5]
type = Buffer
stride = 32
filename = .\DehyaMod_v6\DehyaBlend.buf

[ResourceDehyaTexcoord.5]
type = Buffer
stride = 12
filename = .\DehyaMod_v6\DehyaTexcoord.buf

[ResourceDehyaHeadIB.5]
type = Buffer
format = DXGI_FORMAT_R16_UINT
filename = .\DehyaMod_v6\DehyaHead.ib

[ResourceDehyaBodyIB.5]
type = Buffer
format = DXGI_FORMAT_R16_UINT
filename = .\DehyaMod_v6\DehyaBody.ib

[ResourceDehyaHeadDiffuse.5]
filename = .\DehyaMod_v6\DehyaHeadDiffuse.dds

[ResourceDehyaHeadLightMap.5]
filename = .\DehyaMod_v6\DehyaHeadLightMap.dds

[ResourceDehyaHeadShadow.5]
filename = .\DehyaMod_v6\DehyaHeadShadow.dds

[ResourceDehyaHeadMetalMap.5]
filename = .\DehyaMod_v6\DehyaHeadMetalMap.dds

[ResourceDehyaBodyDiffuse.5]
filename = .\DehyaMod_v6\DehyaBodyDiffuse.dds

[ResourceDehyaBodyLightMap.5]
filename = .\DehyaMod_v6\DehyaBodyLightMap.dds

[ResourceDehyaBodyShadow.5]
filename = .\DehyaMod_v6\DehyaBodyShadow.dds

[ResourceDehyaBodyMetalMap.5]
filename = .\DehyaMod_v6\DehyaBodyMetalMap.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