; Merged Mod: .\JYFundo\JingYuan.ini, .\JYFundoNoScarf\JingYuan.ini

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

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

[KeySwap]
condition = $active == 1
key = alt r
type = cycle
$swapvar = 0,1
$creditinfo = 0

[Present]
post $active = 0
run = CommandListCreditInfo

; Shader ------------------------------

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

[TextureOverrideJingYuanHairPosition]
hash = 31319f5f
run = CommandListJingYuanHairPosition
$active = 1

[TextureOverrideJingYuanHairTexcoord]
hash = f45ac261
run = CommandListJingYuanHairTexcoord

[TextureOverrideJingYuanHairVertexLimitRaise]
hash = 457fc548

[TextureOverrideJingYuanBodyPosition]
hash = b8a52d47
;hash = 095daf27
run = CommandListJingYuanBodyPosition
$active = 1

[TextureOverrideJingYuanBodyTexcoord]
hash = 9f387461
;hash = ebde517e
run = CommandListJingYuanBodyTexcoord

[TextureOverrideJingYuanBodyVertexLimitRaise]
hash = 0b529127
;hash = baaa1347

[TextureOverrideJingYuanHairIB]
hash = 09c6261f
run = CommandListJingYuanHairIB

[TextureOverrideJingYuanHairA]
hash = 09c6261f
match_first_index = 0
run = CommandListJingYuanHairA

[TextureOverrideJingYuanBodyIB]
hash = b1191b83
run = CommandListJingYuanBodyIB

[TextureOverrideJingYuanBodyA]
hash = b1191b83
match_first_index = 0
run = CommandListJingYuanBodyA

[TextureOverrideJingYuanBodyB]
hash = b1191b83
match_first_index = 11505
run = CommandListJingYuanBodyB

[TextureOverrideJingYuanBodyC]
hash = b1191b83
match_first_index = 17778
run = CommandListJingYuanBodyB

[TextureOverrideJingYuanBodyD]
hash = b1191b83
match_first_index = 53571
run = CommandListJingYuanBodyB





[TextureOverrideJingYuanBodyADiffuse]
hash = b1b4f581
this = ResourceJingYuanBodyADiffuse

[TextureOverrideJingYuanBodyALightMap]
hash = 16a2d8bb
this = ResourceJingYuanBodyALightMap

[TextureOverrideJingYuanBodyBDiffuse]
hash = 26735526
this = ResourceJingYuanBodyADiffuse

[TextureOverrideJingYuanBodyBLightMap]
hash = d5b2a23a
this = ResourceJingYuanBodyALightMap

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

[CommandListJingYuanHairPosition]
if $swapvar == 0
	handling = skip
	vb0 = ResourceJingYuanHairPosition.0
	vb2 = ResourceJingYuanHairBlend.0
	draw = 5784,0
	$active = 1
else if $swapvar == 1
	handling = skip
	vb0 = ResourceJingYuanHairPosition.1
	vb2 = ResourceJingYuanHairBlend.1
	draw = 5784,0
	$active = 1
endif

[CommandListJingYuanHairTexcoord]
if $swapvar == 0
	vb1 = ResourceJingYuanHairTexcoord.0
else if $swapvar == 1
	vb1 = ResourceJingYuanHairTexcoord.1
endif

[CommandListJingYuanBodyPosition]
if $swapvar == 0
	handling = skip
	vb0 = ResourceJingYuanBodyPosition.0
	vb2 = ResourceJingYuanBodyBlend.0
	draw = 46650,0
	$active = 1
else if $swapvar == 1
	handling = skip
	vb0 = ResourceJingYuanBodyPosition.1
	vb2 = ResourceJingYuanBodyBlend.1
	draw = 43514,0
	$active = 1
endif

[CommandListJingYuanBodyTexcoord]
if $swapvar == 0
	vb1 = ResourceJingYuanBodyTexcoord.0
else if $swapvar == 1
	vb1 = ResourceJingYuanBodyTexcoord.1
endif

[CommandListJingYuanHairA]
if $swapvar == 0
	ib = ResourceJingYuanHairAIB.0
else if $swapvar == 1
	ib = ResourceJingYuanHairAIB.1
endif

[CommandListJingYuanHairIB]
if $swapvar == 0
	handling = skip
	drawindexed = auto
else if $swapvar == 1
	handling = skip
	drawindexed = auto
endif

[CommandListJingYuanBodyIB]
if $swapvar == 0
	handling = skip
	drawindexed = auto
else if $swapvar == 1
	handling = skip
	drawindexed = auto
endif

[CommandListJingYuanBodyA]
if $swapvar == 0
	ib = ResourceJingYuanBodyAIB.0
else if $swapvar == 1
	ib = ResourceJingYuanBodyAIB.1
endif

[CommandListJingYuanBodyB]
if $swapvar == 0
	ib = ResourceJingYuanBodyBIB.0
else if $swapvar == 1
	ib = ResourceJingYuanBodyBIB.1
endif

[CommandListCreditInfo]
if $swapvar == 0
	if $creditinfo == 0 && $active == 1
		pre Resource\ShaderFixes\help.ini\Notification = ResourceCreditInfo.0
		pre run = CustomShader\ShaderFixes\help.ini\FormatText
		pre $\ShaderFixes\help.ini\notification_timeout = time + 5.0
		$creditinfo = 1
	endif
else if $swapvar == 1
	if $creditinfo == 0 && $active == 1
		pre Resource\ShaderFixes\help.ini\Notification = ResourceCreditInfo.1
		pre run = CustomShader\ShaderFixes\help.ini\FormatText
		pre $\ShaderFixes\help.ini\notification_timeout = time + 5.0
		$creditinfo = 1
	endif
endif

; Resources ---------------------------

[ResourceJingYuanHairPosition.0]
type = Buffer
stride = 40
filename = .\JYFundo\JingYuanHairPosition.buf

[ResourceJingYuanHairBlend.0]
type = Buffer
stride = 32
filename = .\JYFundo\JingYuanHairBlend.buf

[ResourceJingYuanHairTexcoord.0]
type = Buffer
stride = 8
filename = .\JYFundo\JingYuanHairTexcoord.buf

[ResourceJingYuanHeadPosition.0]
type = Buffer
stride = 40
filename = .\JYFundo\JingYuanHeadPosition.buf

[ResourceJingYuanHeadBlend.0]
type = Buffer
stride = 32
filename = .\JYFundo\JingYuanHeadBlend.buf

[ResourceJingYuanHeadTexcoord.0]
type = Buffer
stride = 8
filename = .\JYFundo\JingYuanHeadTexcoord.buf

[ResourceJingYuanBodyPosition.0]
type = Buffer
stride = 40
filename = .\JYFundo\JingYuanBodyPosition.buf

[ResourceJingYuanBodyBlend.0]
type = Buffer
stride = 32
filename = .\JYFundo\JingYuanBodyBlend.buf

[ResourceJingYuanBodyTexcoord.0]
type = Buffer
stride = 20
filename = .\JYFundo\JingYuanBodyTexcoord.buf

[ResourceJingYuanHairAIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\JYFundo\JingYuanHairA.ib

[ResourceJingYuanHeadAIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\JYFundo\JingYuanHeadA.ib

[ResourceJingYuanHeadBIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\JYFundo\JingYuanHeadB.ib

[ResourceJingYuanBodyAIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\JYFundo\JingYuanBodyA.ib

[ResourceJingYuanBodyBIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\JYFundo\JingYuanBodyB.ib

[ResourceJingYuanHairADiffuse.0]
filename = .\JYFundo\JingYuanHairADiffuse.dds

[ResourceJingYuanHairALightMap.0]
filename = .\JYFundo\JingYuanHairALightMap.dds

[ResourceJingYuanHeadADiffuse.0]
filename = .\JYFundo\JingYuanHeadADiffuse.dds

[ResourceJingYuanHeadALightMap.0]
filename = .\JYFundo\JingYuanHeadALightMap.dds

[ResourceJingYuanHeadAShadow.0]
filename = .\JYFundo\JingYuanHeadAShadow.dds

[ResourceJingYuanHeadAt3.0]
filename = .\JYFundo\JingYuanHeadAt3.dds

[ResourceJingYuanHeadBDiffuse.0]
filename = .\JYFundo\JingYuanHeadBDiffuse.dds

[ResourceJingYuanHeadBLightMap.0]
filename = .\JYFundo\JingYuanHeadBLightMap.dds

[ResourceJingYuanHeadBShadow.0]
filename = .\JYFundo\JingYuanHeadBShadow.dds

[ResourceJingYuanBodyADiffuse.0]
filename = .\JYFundo\JingYuanBodyADiffuse.dds

[ResourceJingYuanBodyALightMap.0]
filename = .\JYFundo\JingYuanBodyALightMap.dds

[ResourceJingYuanBodyBDiffuse.0]
filename = .\JYFundo\JingYuanBodyBDiffuse.dds

[ResourceJingYuanBodyBLightMap.0]
filename = .\JYFundo\JingYuanBodyBLightMap.dds

[ResourceCreditInfo.0]
type = Buffer
data = "Created by annplan"

[ResourceJingYuanHairPosition.1]
type = Buffer
stride = 40
filename = .\JYFundoNoScarf\JingYuanHairPosition.buf

[ResourceJingYuanHairBlend.1]
type = Buffer
stride = 32
filename = .\JYFundoNoScarf\JingYuanHairBlend.buf

[ResourceJingYuanHairTexcoord.1]
type = Buffer
stride = 8
filename = .\JYFundoNoScarf\JingYuanHairTexcoord.buf

[ResourceJingYuanHeadPosition.1]
type = Buffer
stride = 40
filename = .\JYFundoNoScarf\JingYuanHeadPosition.buf

[ResourceJingYuanHeadBlend.1]
type = Buffer
stride = 32
filename = .\JYFundoNoScarf\JingYuanHeadBlend.buf

[ResourceJingYuanHeadTexcoord.1]
type = Buffer
stride = 8
filename = .\JYFundoNoScarf\JingYuanHeadTexcoord.buf

[ResourceJingYuanBodyPosition.1]
type = Buffer
stride = 40
filename = .\JYFundoNoScarf\JingYuanBodyPosition.buf

[ResourceJingYuanBodyBlend.1]
type = Buffer
stride = 32
filename = .\JYFundoNoScarf\JingYuanBodyBlend.buf

[ResourceJingYuanBodyTexcoord.1]
type = Buffer
stride = 20
filename = .\JYFundoNoScarf\JingYuanBodyTexcoord.buf

[ResourceJingYuanHairAIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\JYFundoNoScarf\JingYuanHairA.ib

[ResourceJingYuanHeadAIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\JYFundoNoScarf\JingYuanHeadA.ib

[ResourceJingYuanHeadBIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\JYFundoNoScarf\JingYuanHeadB.ib

[ResourceJingYuanBodyAIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\JYFundoNoScarf\JingYuanBodyA.ib

[ResourceJingYuanBodyBIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\JYFundoNoScarf\JingYuanBodyB.ib

[ResourceJingYuanHairADiffuse.1]
filename = .\JYFundoNoScarf\JingYuanHairADiffuse.dds

[ResourceJingYuanHairALightMap.1]
filename = .\JYFundoNoScarf\JingYuanHairALightMap.dds

[ResourceJingYuanHeadADiffuse.1]
filename = .\JYFundoNoScarf\JingYuanHeadADiffuse.dds

[ResourceJingYuanHeadALightMap.1]
filename = .\JYFundoNoScarf\JingYuanHeadALightMap.dds

[ResourceJingYuanHeadAShadow.1]
filename = .\JYFundoNoScarf\JingYuanHeadAShadow.dds

[ResourceJingYuanHeadAt3.1]
filename = .\JYFundoNoScarf\JingYuanHeadAt3.dds

[ResourceJingYuanHeadBDiffuse.1]
filename = .\JYFundoNoScarf\JingYuanHeadBDiffuse.dds

[ResourceJingYuanHeadBLightMap.1]
filename = .\JYFundoNoScarf\JingYuanHeadBLightMap.dds

[ResourceJingYuanHeadBShadow.1]
filename = .\JYFundoNoScarf\JingYuanHeadBShadow.dds

[ResourceJingYuanBodyADiffuse.1]
filename = .\JYFundoNoScarf\JingYuanBodyADiffuse.dds

[ResourceJingYuanBodyALightMap.1]
filename = .\JYFundoNoScarf\JingYuanBodyALightMap.dds

[ResourceJingYuanBodyBDiffuse.1]
filename = .\JYFundoNoScarf\JingYuanBodyBDiffuse.dds

[ResourceJingYuanBodyBLightMap.1]
filename = .\JYFundoNoScarf\JingYuanBodyBLightMap.dds

[ResourceCreditInfo.1]
type = Buffer
data = "Created by annplan"

[ResourceJingYuanHairPosition]
type = Buffer
stride = 40
filename = JingYuanHairPosition.buf

[ResourceJingYuanHairBlend]
type = Buffer
stride = 32
filename = JingYuanHairBlend.buf

[ResourceJingYuanHairTexcoord]
type = Buffer
stride = 8
filename = JingYuanHairTexcoord.buf

[ResourceJingYuanHeadPosition]
type = Buffer
stride = 40
filename = JingYuanHeadPosition.buf

[ResourceJingYuanHeadBlend]
type = Buffer
stride = 32
filename = JingYuanHeadBlend.buf

[ResourceJingYuanHeadTexcoord]
type = Buffer
stride = 8
filename = JingYuanHeadTexcoord.buf

[ResourceJingYuanBodyPosition]
type = Buffer
stride = 40
filename = JingYuanBodyPosition.buf

[ResourceJingYuanBodyBlend]
type = Buffer
stride = 32
filename = JingYuanBodyBlend.buf

[ResourceJingYuanBodyTexcoord]
type = Buffer
stride = 20
filename = JingYuanBodyTexcoord.buf

[ResourceJingYuanHairAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = JingYuanHairA.ib

[ResourceJingYuanHeadAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = JingYuanHeadA.ib

[ResourceJingYuanHeadBIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = JingYuanHeadB.ib

[ResourceJingYuanBodyAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = JingYuanBodyA.ib

[ResourceJingYuanBodyBIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = JingYuanBodyB.ib

[ResourceJingYuanHairADiffuse]
filename = JingYuanHairADiffuse.dds

[ResourceJingYuanHairALightMap]
filename = JingYuanHairALightMap.dds

[ResourceJingYuanHeadADiffuse]
filename = JingYuanHeadADiffuse.dds

[ResourceJingYuanHeadALightMap]
filename = JingYuanHeadALightMap.dds

[ResourceJingYuanHeadAShadow]
filename = JingYuanHeadAShadow.dds

[ResourceJingYuanHeadAt3]
filename = JingYuanHeadAt3.dds

[ResourceJingYuanHeadBDiffuse]
filename = JingYuanHeadBDiffuse.dds

[ResourceJingYuanHeadBLightMap]
filename = JingYuanHeadBLightMap.dds

[ResourceJingYuanHeadBShadow]
filename = JingYuanHeadBShadow.dds

[ResourceJingYuanBodyADiffuse]
filename = JingYuanBodyADiffuse.dds

[ResourceJingYuanBodyALightMap]
filename = JingYuanBodyALightMap.dds

[ResourceJingYuanBodyBDiffuse]
filename = JingYuanBodyBDiffuse.dds

[ResourceJingYuanBodyBLightMap]
filename = JingYuanBodyBLightMap.dds

; .ini generated by GIMI (Genshin-Impact-Model-Importer) mod merger script
; 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