; Merged Mod: .\DehyaMod\Dehya.ini, .\DehyaMod_ogBelt\Dehya.ini, .\DehyaMod_no_back\Dehya.ini, .\DehyaMod_pube\Dehya.ini, .\DehyaMod_areola_pube\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
$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
endif

[CommandListDehyaBlend]
if $swapvar == 0
	vb1 = ResourceDehyaBlend.0
	handling = skip
	draw = 46450,0
else if $swapvar == 1
	vb1 = ResourceDehyaBlend.1
	handling = skip
	draw = 46237,0
else if $swapvar == 2
	vb1 = ResourceDehyaBlend.2
	handling = skip
	draw = 44528,0
else if $swapvar == 3
	vb1 = ResourceDehyaBlend.3
	handling = skip
	draw = 64281,0
else if $swapvar == 4
	vb1 = ResourceDehyaBlend.4
	handling = skip
	draw = 64281,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
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
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
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
else if $swapvar == 4
	ib = ResourceDehyaHeadIB.4
	ps-t0 = ResourceDehyaHeadDiffuse.4
	ps-t1 = ResourceDehyaHeadLightMap.4
	ps-t2 = ResourceDehyaHeadShadow.4
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
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
else if $swapvar == 4
	ib = ResourceDehyaBodyIB.4
	ps-t0 = ResourceDehyaBodyDiffuse.4
	ps-t1 = ResourceDehyaBodyLightMap.4
	ps-t2 = ResourceDehyaBodyShadow.4
endif

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[ResourceDehyaHeadIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DehyaMod_ogBelt\DehyaHead.ib

[ResourceDehyaBodyIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DehyaMod_ogBelt\DehyaBody.ib

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[ResourceDehyaHeadIB.3]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DehyaMod_pube\DehyaHead.ib

[ResourceDehyaBodyIB.3]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DehyaMod_pube\DehyaBody.ib

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

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

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

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

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

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

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

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

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

[ResourceDehyaHeadIB.4]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DehyaMod_areola_pube\DehyaHead.ib

[ResourceDehyaBodyIB.4]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\DehyaMod_areola_pube\DehyaBody.ib

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

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

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

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

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

[ResourceDehyaBodyShadow.4]
filename = .\DehyaMod_areola_pube\DehyaBodyShadow.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