; Rosaria

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

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

[Present]
post $active = 0
run = CommandListCreditInfo

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

[TextureOverrideRosariaPosition]
hash = 59a1f8b1
vb0 = ResourceRosariaPosition
$active = 1

[TextureOverrideRosariaBlend]
hash = a7bee046
vb1 = ResourceRosariaBlend
handling = skip
draw = 75318,0 

[TextureOverrideRosariaTexcoord]
hash = 86e0d16b
vb1 = ResourceRosariaTexcoord

[TextureOverrideRosariaVertexLimitRaise]
hash = f3d4a01a

[TextureOverrideRosariaIB]
hash = bdca273e
;hash = 851e4de1
handling = skip
drawindexed = auto

[TextureOverrideRosariaHead]
hash = bdca273e
;hash = 851e4de1
match_first_index = 0
ib = ResourceRosariaHeadIB
ps-t0 = ResourceRosariaHeadDiffuse
ps-t1 = ResourceRosariaHeadLightMap

[TextureOverrideRosariaBody]
hash = bdca273e
;hash = 851e4de1
match_first_index = 11025
ib = ResourceRosariaBodyIB
ps-t0 = ResourceRosariaBodyDiffuse
ps-t1 = ResourceRosariaBodyLightMap

[TextureOverrideRosariaDress]
hash = bdca273e
;hash = 851e4de1
match_first_index = 46539
ib = ResourceRosariaDressIB
ps-t0 = ResourceRosariaDressDiffuse
ps-t1 = ResourceRosariaDressLightMap

[TextureOverrideRosariaExtra]
hash = bdca273e
;hash = 851e4de1
match_first_index = 48441
ib = null
ps-t0 = ResourceRosariaExtraDiffuse
ps-t1 = ResourceRosariaExtraLightMap

[TextureOverrideRosariaFaceHeadDiffuse]
hash = 2abd61ee
ps-t0 = ResourceRosariaFaceHeadDiffuse


; 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 -------------------------

[ResourceRosariaPosition]
type = Buffer
stride = 40
filename = RosariaPosition.buf

[ResourceRosariaBlend]
type = Buffer
stride = 32
filename = RosariaBlend.buf

[ResourceRosariaTexcoord]
type = Buffer
stride = 20
filename = RosariaTexcoord.buf

[ResourceRosariaHeadIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = RosariaHead.ib

[ResourceRosariaBodyIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = RosariaBody.ib

[ResourceRosariaDressIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = RosariaDress.ib

[ResourceRosariaExtraIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = RosariaExtra.ib

[ResourceRosariaHeadDiffuse]
filename = RosariaHeadDiffuse.dds

[ResourceRosariaHeadLightMap]
filename = RosariaHeadLightMap.dds

[ResourceRosariaBodyDiffuse]
filename = RosariaBodyDiffuse.dds

[ResourceRosariaBodyLightMap]
filename = RosariaBodyLightMap.dds

[ResourceRosariaDressDiffuse]
filename = RosariaDressDiffuse.dds

[ResourceRosariaDressLightMap]
filename = RosariaDressLightMap.dds

[ResourceRosariaExtraDiffuse]
filename = RosariaExtraDiffuse.dds

[ResourceRosariaExtraLightMap]
filename = RosariaExtraLightMap.dds

[ResourceRosariaFaceHeadDiffuse]
filename = RosariaFaceHeadDiffuse.dds

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


; .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 
[TextureOverride41FixVertexLimitRaise0]
hash = 7a318f3d
match_priority = 1
