; Rosaria

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

[Constants]
global $active = 0
global $creditinfo = 0
global persist $veil = 0
global persist $dress = 0
global persist $swap = 0

[KeyVeil]
condition = $active == 1
key = VK_UP
type = cycle
$veil = 0,1
$creditinfo = 0

[KeyDress]
condition = $active == 1
key = VK_right
type = cycle
$dress = 0,1
$creditinfo = 0

[KeySwap]
condition = $active == 1
key = VK_DOWN
type = cycle
$swap = 0,1
$creditinfo = 0

[Present]
post $active = 0
run = CommandListCreditInfo

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

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

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

[TextureOverrideRosariaTexcoord]
hash = 86e0d16b
vb1 = ResourceRosariaTexcoord

[TextureOverrideRosariaVertexLimitRaise]
hash = 7a318f3d
override_vertex_count = 143626
override_byte_stride = 40

[TextureOverrideRosariaIB]
hash = bdca273e
handling = skip

[TextureOverrideRosariaHead]
hash = bdca273e
match_first_index = 0
ib = ResourceRosariaHeadIB
ps-t0 = ResourceRosariaHeadDiffuse
ps-t1 = ResourceRosariaHeadLightMap
run = CommandList\global\ORFix\NNFix
; head (2673)
drawindexed = 9474, 0, 0

[TextureOverrideRosariaBody]
hash = bdca273e
match_first_index = 11025
ib = ResourceRosariaBodyIB
ps-t0 = ResourceRosariaBodyDiffuse
ps-t1 = ResourceRosariaBodyLightMap
run = CommandList\global\ORFix\NNFix
if $swap == 0
ps-t69 = ResourceRosariaBodyDiffuseAlpha
$\TexFx\_1 = 2592
$\TexFx\_2 = 7440
run = CommandList\TexFx\Component
; cover3 (576)
drawindexed = 2592, 7440, 0
endif
; nude (12487)
drawindexed = 66276, 422736, 0
if $swap == 0
ps-t69 = ResourceRosariaBodyDiffuseAlpha
$\TexFx\_1 = 38418
$\TexFx\_2 = 489012
run = CommandList\TexFx\Component
; nude_dress (8417)
drawindexed = 38418, 489012, 0
endif
if $swap == 1
ps-t69 = ResourceRosariaBodyDiffuseAlpha
$\TexFx\_1 = 35784
$\TexFx\_2 = 527430
run = CommandList\TexFx\Component
; nude_no (7882)
drawindexed = 35784, 527430, 0
endif
ps-t0 = ResourceRosariaBodyDiffuse1
ps-t1 = ResourceRosariaBodyLightMap1
ps-t69 = null
run = CommandList\global\ORFix\NNFix
; z_neck (338)
drawindexed = 1158, 563214, 0
ps-t0 = ResourceRosariaExtraDiffuse1
ps-t1 = ResourceRosariaExtraLightMap1
ps-t69 = null
run = CommandList\global\ORFix\NNFix
; hands (6671)
drawindexed = 27384, 395352, 0
if $swap == 0
; cover (900)
drawindexed = 4320, 0, 0
endif
ps-t0 = ResourceRosariaExtraDiffuse
ps-t1 = ResourceRosariaExtraLightMap
ps-t69 = null
run = CommandList\global\ORFix\NNFix
if $swap == 1
; dress_part (17242)
drawindexed = 186720, 10032, 0
endif
if $swap == 0
; dress_part2 (18318)
drawindexed = 198600, 196752, 0
; cover2 (264)
drawindexed = 3120, 4320, 0
endif

[TextureOverrideRosariaExtra]
hash = bdca273e
match_first_index = 48441
ib = ResourceRosariaExtraIB
ps-t0 = ResourceRosariaExtraDiffuse1
ps-t1 = ResourceRosariaExtraLightMap1
ps-t69 = null
run = CommandList\global\ORFix\NNFix
if $dress == 0
; acc.001 (8861)
drawindexed = 35373, 0, 0
endif
; acc.head (1649)
drawindexed = 4788, 35373, 0
ps-t0 = ResourceRosariaExtraDiffuse
ps-t1 = ResourceRosariaExtraLightMap
ps-t69 = null
run = CommandList\global\ORFix\NNFix
if $dress == 0
; inv.best (332)
drawindexed = 1524, 40161, 0
endif
if $veil == 0
ps-t69 = ResourceRosariaExtraDiffuseAlpha
$\TexFx\_1 = 3066
$\TexFx\_2 = 41685
run = CommandList\TexFx\Component
; weil.003 (580)
drawindexed = 3066, 41685, 0
endif

[TextureOverrideRosariaFaceHeadDiffuse]
hash = 2abd61ee
this = ResourceRosariaFaceHeadDiffuse

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

[CommandListCreditInfo]
if $creditinfo == 0 && $active > 0
	pre Resource\ShaderFixes\help.ini\Notification = ResourceCreditInfo
	pre run = CustomShader\ShaderFixes\help.ini\FormatText
	pre $\ShaderFixes\help.ini\notification_timeout = time + 5.0
	$creditinfo = 2
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

[ResourceRosariaBodyDiffuseAlpha]
filename = RosariaBodyDiffuseAlpha.dds

[ResourceRosariaBodyDiffuse1]
filename = RosariaBodyDiffuse1.dds

[ResourceRosariaBodyLightMap1]
filename = RosariaBodyLightMap1.dds

[ResourceRosariaDressDiffuse]
filename = RosariaDressDiffuse.dds

[ResourceRosariaDressLightMap]
filename = RosariaDressLightMap.dds

[ResourceRosariaExtraDiffuse]
filename = RosariaExtraDiffuse.dds

[ResourceRosariaExtraLightMap]
filename = RosariaExtraLightMap.dds

[ResourceRosariaExtraDiffuseAlpha]
filename = RosariaExtraDiffuseAlpha.dds

[ResourceRosariaExtraDiffuse1]
filename = RosariaExtraDiffuse1.dds

[ResourceRosariaExtraLightMap1]
filename = RosariaExtraLightMap1.dds

[ResourceRosariaFaceHeadDiffuse]
filename = RosariaFaceHeadDiffuse.dds

[ResourceCreditInfo]
type = Buffer
data = "Original creator - Exce. Imported by Potato (_treef_)"

; .ini generated by XXMI (XX-Model-Importer) v1.6.3
; If you have any issues or find any bugs, please open a ticket at https://github.com/leotorrez/XXMI-Tools/issues
