; Arlecchino

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

[Constants]
global $active = 0
global $creditinfo = 0
global persist $DressTransparency = 1

[Present]
post $active = 0


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

[TextureOverrideArlecchinoPosition]
hash = 6895f405
vb0 = ResourceArlecchinoPosition
$active = 1

[TextureOverrideArlecchinoBlend]
hash = e211de60
vb1 = ResourceArlecchinoBlend
handling = skip
draw = 60577, 0 

[TextureOverrideArlecchinoTexcoord]
hash = 8b17a419
vb1 = ResourceArlecchinoTexcoord

[TextureOverrideArlecchinoVertexLimitRaise]
hash = 44e3487a

[TextureOverrideArlecchinoIB]
hash = e811d2a1
handling = skip


[TextureOverrideArlecchinoHead]
hash = e811d2a1
match_first_index = 0
ib = ResourceArlecchinoHeadIB
ps-t0 = ResourceArlecchinoHeadNormalMap
ps-t1 = ResourceArlecchinoHeadDiffuse
ps-t2 = ResourceArlecchinoHeadLightMap
run = CommandList\global\ORFix\ORFix
if $variable0 == 0
  drawindexed = 61557, 0, 0
else if $variable0 == 1
  drawindexed = 61557, 61557, 0
endif
if $variable2 == 0
  drawindexed = 0, 123114, 0
endif
if $variable3 == 0
  drawindexed = 7644, 123114, 0
endif



[TextureOverrideArlecchinoBody]
hash = e811d2a1
match_first_index = 40179
ib = ResourceArlecchinoBodyIB
ps-t0 = ResourceArlecchinoBodyNormalMap
ps-t1 = ResourceArlecchinoBodyDiffuse
ps-t2 = ResourceArlecchinoBodyLightMap
ps-t69 = ResourceArlecchinoBodyAlpha
run = CommandList\global\ORFix\ORFix
if $variable0 == 0
  drawindexed = 55224, 0, 0
  ps-t69 = ResourceArlecchinoBodyAlpha
  run = CommandList\TexFx\Component.0
else if $variable0 == 1
  drawindexed = 63792, 55224, 0
endif
if $variable2 == 0
  drawindexed = 2286, 119016, 0
endif
if $variable3 == 0
  drawindexed = 0, 121302, 0
endif


[TextureOverrideArlecchinoDress]
hash = e811d2a1
match_first_index = 74412
ib = ResourceArlecchinoDressIB
ps-t0 = ResourceArlecchinoDressDiffuse
ps-t1 = ResourceArlecchinoDressLightMap
if $variable0 == 0
  drawindexed = 6354, 0, 0
else if $variable0 == 1
  drawindexed = 6354, 6354, 0
endif
if $variable2 == 0
  drawindexed = 0, 12708, 0
endif
if $variable3 == 0
  drawindexed = 0, 12708, 0
endif


[TextureOverrideArlecchinoFaceHeadDiffuse]
hash = a44625da
ps-t0 = ResourceArlecchinoFaceHeadDiffuse


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

[ResourceArlecchinoPosition]
type = Buffer
stride = 40
filename = ArlecchinoPosition.buf

[ResourceArlecchinoBlend]
type = Buffer
stride = 32
filename = ArlecchinoBlend.buf

[ResourceArlecchinoTexcoord]
type = Buffer
stride = 20
filename = ArlecchinoTexcoord.buf

[ResourceArlecchinoHeadIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = ArlecchinoHead.ib

[ResourceArlecchinoBodyIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = ArlecchinoBody.ib

[ResourceArlecchinoDressIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = ArlecchinoDress.ib

[ResourceArlecchinoHeadNormalMap]
filename = ArlecchinoHeadNormalMap.dds

[ResourceArlecchinoHeadDiffuse]
filename = ArlecchinoHeadDiffuse.dds

[ResourceArlecchinoHeadLightMap]
filename = ArlecchinoHeadLightMap.dds

[ResourceArlecchinoBodyNormalMap]
filename = ArlecchinoBodyNormalMap.dds

[ResourceArlecchinoBodyDiffuse]
filename = ArlecchinoBodyDiffuse.dds

[ResourceArlecchinoBodyLightMap]
filename = ArlecchinoBodyLightMap.dds

[ResourceArlecchinoDressDiffuse]
filename = ArlecchinoDressDiffuse.dds

[ResourceArlecchinoDressLightMap]
filename = ArlecchinoDressLightMap.dds

[ResourceArlecchinoFaceHeadDiffuse]
filename = ArlecchinoFaceHeadDiffuse.dds

[ResourceArlecchinoBodyAlpha]
filename = ArlecchinoBodyAlpha.dds

[ResourceCreditInfo]
type = Buffer
data = ""


; .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
[Constants]
global persist $variable0 = 1
global persist $variable1 = 0
global persist $variable2 = 0
global persist $variable3 = 0
global persist $variable4 = 0
[KeySwap0]
key = VK_DOWN
condition = $active == 1
type = cycle
$variable0 = 0,1
[KeySwap1]
key = VK_LEFT
condition = $active == 1
type = cycle
$variable1 = 0,1,2,3
[KeySwap2]
key = no_alt VK_UP
condition = $active == 1
type = cycle
$variable2 = 0,1
[KeySwap3]
key = alt VK_UP
condition = $active == 1
type = cycle
$variable3 = 0,1
[KeySwap4]
key = VK_RIGHT
condition = $active == 1
type = cycle
$variable4 = 0,1

