; Yelan

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

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

[TextureOverrideYelanPosition]
hash = c58c76f9
vb0 = ResourceYelanPosition

[TextureOverrideYelanBlend]
hash = f6e01e3c
vb1 = ResourceYelanBlend
handling = skip
draw = 37417,0 

[TextureOverrideYelanTexcoord]
hash = 428b836c
vb1 = ResourceYelanTexcoord

[TextureOverrideYelanVertexLimitRaise]
hash = 589fed34

[TextureOverrideYelanIB]
hash = ba35247d
handling = skip
drawindexed = auto

[TextureOverrideYelanHead]
hash = ba35247d
match_first_index = 0
ib = ResourceYelanHeadIB
ps-t0 = ResourceYelanHeadDiffuse
if ps-t1 == 943068897
;    ps-t1 = ResourceYelanDash
else if ps-t1 != 857068213
    ps-t1 = ResourceYelanHeadLightMap
endif

[TextureOverrideYelanBody]
hash = ba35247d
match_first_index = 20913
ib = ResourceYelanBodyIB
ps-t0 = ResourceYelanBodyDiffuse
if ps-t1 == 943068897
;    ps-t1 = ResourceYelanDash
else if ps-t1 != 857068213
    ps-t1 = ResourceYelanBodyLightMap
endif

[TextureOverrideYelanDress]
hash = ba35247d
match_first_index = 51759
ib = ResourceYelanDressIB
ps-t0 = ResourceYelanDressDiffuse
if ps-t1 == 943068897
;    ps-t1 = ResourceYelanDash
else if ps-t1 != 857068213
    ps-t1 = ResourceYelanDressLightMap
endif

[TextureOverrideYelanExtra]
hash = ba35247d
match_first_index = 54042
ib = ResourceYelanExtraIB
ps-t0 = ResourceYelanExtraDiffuse
if ps-t1 == 943068897
    ps-t1 = ResourceYelanDash
else if ps-t1 != 857068213
    ps-t1 = ResourceYelanExtraLightMap
endif

[TextureOverrideYelanFaceHeadDiffuse]
hash = d3c0b54a
ps-t0 = ResourceYelanFaceHeadDiffuse


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


[TextureOverrideYelanDash]
hash = 383616e1
filter_index = 943068897
ResourceYelanDash = ps-t1

[TextureOverrideYelanDash2]
hash = 3315d2b5
filter_index = 857068213


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

[ResourceYelanDash]

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

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

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

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

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

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

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

[ResourceYelanHeadDiffuse]
filename = YelanHeadDiffuse.dds

[ResourceYelanHeadLightMap]
filename = YelanHeadLightMap.dds

[ResourceYelanBodyDiffuse]
filename = YelanBodyDiffuse.dds

[ResourceYelanBodyLightMap]
filename = YelanBodyLightMap.dds

[ResourceYelanDressDiffuse]
filename = YelanDressDiffuse.dds

[ResourceYelanDressLightMap]
filename = YelanDressLightMap.dds

[ResourceYelanExtraDiffuse]
filename = YelanExtraDiffuse.dds

[ResourceYelanExtraLightMap]
filename = YelanExtraLightMap.dds

[ResourceYelanFaceHeadDiffuse]
filename = YelanFaceHeadDiffuse.dds


; .ini generated by GIMI (Genshin-Impact-Model-Importer)
; 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

; 4.1 Character Fix 
[TextureOverride41FixVertexLimitRaise]
hash = d17ac213