; Mona

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

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

[Present]
post $active = 0
run = CommandListCreditInfo

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

[TextureOverrideMonaPosition]
hash = ee5ed1dc
vb0 = ResourceMonaPosition
$active = 1

[TextureOverrideMonaBlend]
hash = bad2731b
vb1 = ResourceMonaBlend
handling = skip
draw = 22167,0 

[TextureOverrideMonaTexcoord]
hash = e543af5d
vb1 = ResourceMonaTexcoord

[TextureOverrideMonaVertexLimitRaise]
hash = 41f18240

[TextureOverrideMonaIB]
hash = ed79ea5b
handling = skip
drawindexed = auto

[TextureOverrideMonaHead]
hash = ed79ea5b
match_first_index = 0
ib = ResourceMonaHeadIB
ps-t0 = ResourceMonaHeadDiffuse
ps-t1 = ResourceMonaHeadLightMap

[TextureOverrideMonaBody]
hash = ed79ea5b
match_first_index = 17688
ib = ResourceMonaBodyIB
ps-t0 = ResourceMonaBodyDiffuse
ps-t1 = ResourceMonaBodyLightMap

[TextureOverrideMonaFaceHeadDiffuse]
hash = 8e116301
ps-t0 = ResourceMonaFaceHeadDiffuse


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

[CommandListCreditInfo]
if $creditinfo == 0 && $active == 1
	pre Resource\ShaderFixes\help.ini\Notification = ResourceCreditInfo
	pre run = CustomShader\ShaderFixes\help.ini\FormatText
	pre $\ShaderFixes\help.ini\notification_timeout = time + 5.0
	$creditinfo = 1
endif

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

[ResourceMonaPosition]
type = Buffer
stride = 40
filename = MonaPosition.buf

[ResourceMonaBlend]
type = Buffer
stride = 32
filename = MonaBlend.buf

[ResourceMonaTexcoord]
type = Buffer
stride = 12
filename = MonaTexcoord.buf

[ResourceMonaHeadIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = MonaHead.ib

[ResourceMonaBodyIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = MonaBody.ib

[ResourceMonaHeadDiffuse]
filename = MonaHeadDiffuse.dds

[ResourceMonaHeadLightMap]
filename = MonaHeadLightMap.dds

[ResourceMonaBodyDiffuse]
filename = MonaBodyDiffuse.dds

[ResourceMonaBodyLightMap]
filename = MonaBodyLightMap.dds

[ResourceMonaFaceHeadDiffuse]
filename = MonaFaceHeadDiffuse.dds

[ResourceCreditInfo]
type = Buffer
data = "Created by Exce"


; .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 = c814ad67