; Lynette

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

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

[TextureOverrideLynettePosition]
hash = 98eb2db4
match_priority = 3
if $\p\Master\swapvar==3
	vb0 = ResourceLynettePosition
endif

	
[TextureOverrideLynetteBlend]
hash = 42addacd
match_priority = 3
if $\p\Master\swapvar==3
	vb1 = ResourceLynetteBlend
	handling = skip
	draw = 24504,0
endif

	
[TextureOverrideLynetteTexcoord]
hash = f828b5be
match_priority = 3
if $\p\Master\swapvar==3
	vb1 = ResourceLynetteTexcoord
endif

	
[TextureOverrideLynetteVertexLimitRaise]
hash = bb7a73b6
match_priority = 3
if $\p\Master\swapvar==3
endif

	
[TextureOverrideLynetteIB]
hash = 39d89255
match_priority = 3
if $\p\Master\swapvar==3
	;hash = 010cf88a
	handling = skip
	drawindexed = auto
endif

	
[TextureOverrideLynetteHead]
hash = 39d89255
match_priority = 3
if $\p\Master\swapvar==3
	;hash = 010cf88a
	match_first_index = 0
	ib = ResourceLynetteHeadIB
	ps-t0 = ResourceLynetteHeadNormalMap
	ps-t1 = ResourceLynetteHeadDiffuse
	ps-t2 = ResourceLynetteHeadLightMap
endif

	
[TextureOverrideLynetteBody]
hash = 39d89255
match_priority = 3
if $\p\Master\swapvar==3
	;hash = 010cf88a
	match_first_index = 16257
	ib = ResourceLynetteBodyIB
	ps-t0 = ResourceLynetteBodyNormalMap
	ps-t1 = ResourceLynetteBodyDiffuse
	ps-t2 = ResourceLynetteBodyLightMap
	run = CommandList\global\ORFix\ORFix
endif

	
	
[TextureOverrideLynetteDress]
hash = 39d89255
match_priority = 3
if $\p\Master\swapvar==3
	;hash = 010cf88a
	match_first_index = 65223
	ib = null
	ps-t0 = ResourceLynetteDressNormalMap
	ps-t1 = ResourceLynetteDressDiffuse
	ps-t2 = ResourceLynetteDressLightMap
	run = CommandList\global\ORFix\NNFix
endif

	
[TextureOverrideLynetteExtra]
hash = 39d89255
match_priority = 3
if $\p\Master\swapvar==3
	;hash = 010cf88a
	match_first_index = 68358
	ib = ResourceLynetteExtraIB
	ps-t0 = ResourceLynetteExtraNormalMap
	ps-t1 = ResourceLynetteExtraDiffuse
	ps-t2 = ResourceLynetteExtraLightMap
	run = CommandList\global\ORFix\ORFix
endif

	
	
; CommandList -----------------------
	
; Resources -------------------------
	
[ResourceLynettePosition]
type = Buffer
stride = 40
filename = LynettePosition.buf

[ResourceLynetteBlend]
type = Buffer
stride = 32
filename = LynetteBlend.buf

[ResourceLynetteTexcoord]
type = Buffer
stride = 20
filename = LynetteTexcoord.buf

[ResourceLynetteHeadIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = LynetteHead.ib

[ResourceLynetteBodyIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = LynetteBody.ib

[ResourceLynetteDressIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = LynetteDress.ib

[ResourceLynetteExtraIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = LynetteExtra.ib

[ResourceLynetteHeadNormalMap]
filename = LynetteHeadNormalMap.dds

[ResourceLynetteHeadDiffuse]
filename = LynetteHeadDiffuse.dds

[ResourceLynetteHeadLightMap]
filename = LynetteHeadLightMap.dds

[ResourceLynetteBodyNormalMap]
filename = LynetteBodyNormalMap.dds

[ResourceLynetteBodyDiffuse]
filename = LynetteBodyDiffuse.dds

[ResourceLynetteBodyLightMap]
filename = LynetteBodyLightMap.dds

[ResourceLynetteDressNormalMap]
filename = LynetteDressNormalMap.dds

[ResourceLynetteDressDiffuse]
filename = LynetteDressDiffuse.dds

[ResourceLynetteDressLightMap]
filename = LynetteDressLightMap.dds

[ResourceLynetteExtraNormalMap]
filename = LynetteExtraNormalMap.dds

[ResourceLynetteExtraDiffuse]
filename = LynetteExtraDiffuse.dds

[ResourceLynetteExtraLightMap]
filename = LynetteExtraLightMap.dds


; .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 = 329f5c91
match_priority = 3
if $\p\Master\swapvar==3
match_priority = 1
endif

