; Merged Mod: .\YelanModf0001\Yelan.ini, .\YelanModf0002\Yelan.ini, .\YelanModf0003\Yelan.ini

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

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

[KeySwap]
condition = $active == 1
key = h
back = 
type = cycle
$swapvar = 0,1,2
$creditinfo = 0

[Present]
post $active = 0

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

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

[TextureOverrideYelanPosition]
hash = c58c76f9
run = CommandListYelanPosition
$active = 1

[TextureOverrideYelanBlend]
hash = f6e01e3c
run = CommandListYelanBlend

[TextureOverrideYelanTexcoord]
hash = 428b836c
run = CommandListYelanTexcoord

[TextureOverrideYelanVertexLimitRaise]
hash = d17ac213

[TextureOverrideYelanIB]
hash = 82e14ea2
run = CommandListYelanIB

[TextureOverrideYelanHead]
hash = 82e14ea2
match_first_index = 0
run = CommandListYelanHead

[TextureOverrideYelanBody]
hash = 82e14ea2
match_first_index = 20913
run = CommandListYelanBody

[TextureOverrideYelanDress]
hash = 82e14ea2
match_first_index = 51759
run = CommandListYelanDress

[TextureOverrideYelanExtra]
hash = 82e14ea2
match_first_index = 54042
run = CommandListYelanExtra

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

[CommandListYelanPosition]
if $swapvar == 0
	vb0 = ResourceYelanPosition.0
else if $swapvar == 1
	vb0 = ResourceYelanPosition.1
else if $swapvar == 2
	vb0 = ResourceYelanPosition.2
endif

[CommandListYelanBlend]
if $swapvar == 0
	vb1 = ResourceYelanBlend.0
	handling = skip
	draw = 47876,0
else if $swapvar == 1
	vb1 = ResourceYelanBlend.1
	handling = skip
	draw = 47758,0
else if $swapvar == 2
	vb1 = ResourceYelanBlend.2
	handling = skip
	draw = 47748,0
endif

[CommandListYelanTexcoord]
if $swapvar == 0
	vb1 = ResourceYelanTexcoord.0
else if $swapvar == 1
	vb1 = ResourceYelanTexcoord.1
else if $swapvar == 2
	vb1 = ResourceYelanTexcoord.2
endif

[CommandListYelanIB]
if $swapvar == 0
	handling = skip
	drawindexed = auto
else if $swapvar == 1
	handling = skip
	drawindexed = auto
else if $swapvar == 2
	handling = skip
	drawindexed = auto
endif

[CommandListYelanHead]
if $swapvar == 0
	ib = ResourceYelanHeadIB.0
	ps-t0 = ResourceYelanHeadDiffuse.0
	ps-t1 = ResourceYelanHeadLightMap.0
	run = CommandList\global\ORFix\NNFix
else if $swapvar == 1
	ib = ResourceYelanHeadIB.1
	ps-t0 = ResourceYelanHeadDiffuse.1
	ps-t1 = ResourceYelanHeadLightMap.1
	run = CommandList\global\ORFix\NNFix
else if $swapvar == 2
	ib = ResourceYelanHeadIB.2
	ps-t0 = ResourceYelanHeadDiffuse.2
	ps-t1 = ResourceYelanHeadLightMap.2
	run = CommandList\global\ORFix\NNFix
endif

[CommandListYelanBody]
if $swapvar == 0
	ib = ResourceYelanBodyIB.0
	ps-t0 = ResourceYelanBodyDiffuse.0
	ps-t1 = ResourceYelanBodyLightMap.0
	run = CommandList\global\ORFix\NNFix
else if $swapvar == 1
	ib = ResourceYelanBodyIB.1
	ps-t0 = ResourceYelanBodyDiffuse.1
	ps-t1 = ResourceYelanBodyLightMap.1
	run = CommandList\global\ORFix\NNFix
else if $swapvar == 2
	ib = ResourceYelanBodyIB.2
	ps-t0 = ResourceYelanBodyDiffuse.2
	ps-t1 = ResourceYelanBodyLightMap.2
	run = CommandList\global\ORFix\NNFix
endif

[CommandListYelanDress]
if $swapvar == 0
	ib = ResourceYelanDressIB.0
	ps-t0 = ResourceYelanDressDiffuse.0
	ps-t1 = ResourceYelanDressLightMap.0
	run = CommandList\global\ORFix\NNFix
else if $swapvar == 1
	ib = ResourceYelanDressIB.1
	ps-t0 = ResourceYelanDressDiffuse.1
	ps-t1 = ResourceYelanDressLightMap.1
	run = CommandList\global\ORFix\NNFix
else if $swapvar == 2
	ib = ResourceYelanDressIB.2
	ps-t0 = ResourceYelanDressDiffuse.2
	ps-t1 = ResourceYelanDressLightMap.2
	run = CommandList\global\ORFix\NNFix
endif

[CommandListYelanExtra]
if $swapvar == 0
	ib = ResourceYelanExtraIB.0
	ps-t0 = ResourceYelanExtraDiffuse.0
	ps-t1 = ResourceYelanExtraLightMap.0
	run = CommandList\global\ORFix\NNFix
else if $swapvar == 1
	ib = ResourceYelanExtraIB.1
	ps-t0 = ResourceYelanExtraDiffuse.1
	ps-t1 = ResourceYelanExtraLightMap.1
	run = CommandList\global\ORFix\NNFix
else if $swapvar == 2
	ib = ResourceYelanExtraIB.2
	ps-t0 = ResourceYelanExtraDiffuse.2
	ps-t1 = ResourceYelanExtraLightMap.2
	run = CommandList\global\ORFix\NNFix
endif

[CommandListYelanFaceHeadDiffuse]
if $swapvar == 0
	ps-t0 = ResourceYelanFaceHeadDiffuse.0
else if $swapvar == 1
	ps-t0 = ResourceYelanFaceHeadDiffuse.1
else if $swapvar == 2
	ps-t0 = ResourceYelanFaceHeadDiffuse.2
endif

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

[ResourceYelanPosition.0]
type = Buffer
stride = 40
filename = .\YelanModf0001\YelanPosition.buf

[ResourceYelanBlend.0]
type = Buffer
stride = 32
filename = .\YelanModf0001\YelanBlend.buf

[ResourceYelanTexcoord.0]
type = Buffer
stride = 20
filename = .\YelanModf0001\YelanTexcoord.buf

[ResourceYelanHeadIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\YelanModf0001\YelanHead.ib

[ResourceYelanBodyIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\YelanModf0001\YelanBody.ib

[ResourceYelanDressIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\YelanModf0001\YelanDress.ib

[ResourceYelanExtraIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\YelanModf0001\YelanExtra.ib

[ResourceYelanHeadDiffuse.0]
filename = .\YelanModf0001\YelanHeadDiffuse.dds

[ResourceYelanHeadLightMap.0]
filename = .\YelanModf0001\YelanHeadLightMap.dds

[ResourceYelanBodyDiffuse.0]
filename = .\YelanModf0001\YelanBodyDiffuse.dds

[ResourceYelanBodyLightMap.0]
filename = .\YelanModf0001\YelanBodyLightMap.dds

[ResourceYelanDressDiffuse.0]
filename = .\YelanModf0001\YelanDressDiffuse.dds

[ResourceYelanDressLightMap.0]
filename = .\YelanModf0001\YelanDressLightMap.dds

[ResourceYelanExtraDiffuse.0]
filename = .\YelanModf0001\YelanExtraDiffuse.dds

[ResourceYelanExtraLightMap.0]
filename = .\YelanModf0001\YelanExtraLightMap.dds

[ResourceYelanFaceHeadDiffuse.0]
filename = .\YelanModf0001\YelanFaceHeadDiffuse.dds

[ResourceYelanPosition.1]
type = Buffer
stride = 40
filename = .\YelanModf0002\YelanPosition.buf

[ResourceYelanBlend.1]
type = Buffer
stride = 32
filename = .\YelanModf0002\YelanBlend.buf

[ResourceYelanTexcoord.1]
type = Buffer
stride = 20
filename = .\YelanModf0002\YelanTexcoord.buf

[ResourceYelanHeadIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\YelanModf0002\YelanHead.ib

[ResourceYelanBodyIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\YelanModf0002\YelanBody.ib

[ResourceYelanDressIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\YelanModf0002\YelanDress.ib

[ResourceYelanExtraIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\YelanModf0002\YelanExtra.ib

[ResourceYelanHeadDiffuse.1]
filename = .\YelanModf0001\YelanHeadDiffuse.dds

[ResourceYelanHeadLightMap.1]
filename = .\YelanModf0001\YelanHeadLightMap.dds

[ResourceYelanBodyDiffuse.1]
filename = .\YelanModf0001\YelanBodyDiffuse.dds

[ResourceYelanBodyLightMap.1]
filename = .\YelanModf0001\YelanBodyLightMap.dds

[ResourceYelanDressDiffuse.1]
filename = .\YelanModf0001\YelanDressDiffuse.dds

[ResourceYelanDressLightMap.1]
filename = .\YelanModf0001\YelanDressLightMap.dds

[ResourceYelanExtraDiffuse.1]
filename = .\YelanModf0001\YelanExtraDiffuse.dds

[ResourceYelanExtraLightMap.1]
filename = .\YelanModf0001\YelanExtraLightMap.dds

[ResourceYelanFaceHeadDiffuse.1]
filename = .\YelanModf0001\YelanFaceHeadDiffuse.dds

[ResourceYelanPosition.2]
type = Buffer
stride = 40
filename = .\YelanModf0003\YelanPosition.buf

[ResourceYelanBlend.2]
type = Buffer
stride = 32
filename = .\YelanModf0003\YelanBlend.buf

[ResourceYelanTexcoord.2]
type = Buffer
stride = 20
filename = .\YelanModf0003\YelanTexcoord.buf

[ResourceYelanHeadIB.2]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\YelanModf0003\YelanHead.ib

[ResourceYelanBodyIB.2]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\YelanModf0003\YelanBody.ib

[ResourceYelanDressIB.2]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\YelanModf0003\YelanDress.ib

[ResourceYelanExtraIB.2]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\YelanModf0003\YelanExtra.ib

[ResourceYelanHeadDiffuse.2]
filename = .\YelanModf0001\YelanHeadDiffuse.dds

[ResourceYelanHeadLightMap.2]
filename = .\YelanModf0001\YelanHeadLightMap.dds

[ResourceYelanBodyDiffuse.2]
filename = .\YelanModf0001\YelanBodyDiffuse.dds

[ResourceYelanBodyLightMap.2]
filename = .\YelanModf0001\YelanBodyLightMap.dds

[ResourceYelanDressDiffuse.2]
filename = .\YelanModf0001\YelanDressDiffuse.dds

[ResourceYelanDressLightMap.2]
filename = .\YelanModf0001\YelanDressLightMap.dds

[ResourceYelanExtraDiffuse.2]
filename = .\YelanModf0001\YelanExtraDiffuse.dds

[ResourceYelanExtraLightMap.2]
filename = .\YelanModf0001\YelanExtraLightMap.dds

[ResourceYelanFaceHeadDiffuse.2]
filename = .\YelanModf0001\YelanFaceHeadDiffuse.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