; ArleChair

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

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

[KeySwap0]
key = 8
condition = $active == 1
type = cycle
$variable0 = 0,1

[Present]
post $active = 0


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

[TextureOverrideArleChairPosition]
hash = 3e2216a9
vb0 = ResourceArleChairPosition
$active = 1

[TextureOverrideArleChairBlend]
hash = cd6ee862
vb1 = ResourceArleChairBlend
handling = skip
draw = 1974,0 

[TextureOverrideArleChairTexcoord]
hash = 669c6b59
vb1 = ResourceArleChairTexcoord

[TextureOverrideArleChairVertexLimitRaise]
hash = 6d8aa7f1

[TextureOverrideArleChairIB]
hash = d75c0791
handling = skip

[TextureOverrideArleChairHead]
hash = d75c0791
match_first_index = 0
if $variable0 == 0
ib = ResourceArleChairHeadIB
ps-t0 = ResourceArleChairHeadDiffuse
drawindexed = auto
else if $variable0 == 1
handling = skip
endif

[TextureOverrideArleChairEffectTop]
hash = 9a1e93be
if $variable0 == 0
drawindexed = auto
else if $variable0 == 1
handling = skip
endif

[TextureOverrideArleChairEffectBottom]
hash = 3ab9c344
if $variable0 == 0
drawindexed = auto
else if $variable0 == 1
handling = skip
endif

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

[ResourceArleChairPosition]
type = Buffer
stride = 40
filename = ArleChairPosition.buf

[ResourceArleChairBlend]
type = Buffer
stride = 32
filename = ArleChairBlend.buf

[ResourceArleChairTexcoord]
type = Buffer
stride = 12
filename = ArleChairTexcoord.buf

[ResourceArleChairHeadIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = ArleChairHead.ib

[ResourceArleChairHeadDiffuse]
filename = ArleChairHeadDiffuse.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