; Merged Mod: .\NingguangMod_basic\NingguangMod\Ningguang.ini, .\NingguangMod_part_dress\NingguangMod\Ningguang.ini

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

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

[KeySwap]
condition = $active == 1
key = vk_right
back = vk_left
type = cycle
$swapvar = 0,1
$creditinfo = 0

[Present]
post $active = 0

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

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

[TextureOverrideNingguangPosition]
hash = f9e1b52b
run = CommandListNingguangPosition
$active = 1

[TextureOverrideNingguangBlend]
hash = 735eaea4
run = CommandListNingguangBlend

[TextureOverrideNingguangTexcoord]
hash = 1f0ab400
run = CommandListNingguangTexcoord

[TextureOverrideNingguangVertexLimitRaise]
hash = e4fc5902

[TextureOverrideNingguangIB]
hash = ad75352c
run = CommandListNingguangIB

[TextureOverrideNingguangHead]
hash = ad75352c
match_first_index = 0
run = CommandListNingguangHead

[TextureOverrideNingguangBody]
hash = ad75352c
match_first_index = 12384
run = CommandListNingguangBody

[TextureOverrideNingguangDress]
hash = ad75352c
match_first_index = 47157
run = CommandListNingguangDress

[TextureOverrideNingguangFaceHeadDiffuse]
hash = 4cc85338
run = CommandListNingguangFaceHeadDiffuse

[TextureOverride41FixVertexLimitRaise0]
hash = 4c2f9a0a

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

[CommandListNingguangPosition]
if $swapvar == 0
	vb0 = ResourceNingguangPosition.0
else if $swapvar == 1
	vb0 = ResourceNingguangPosition.1
endif

[CommandListNingguangBlend]
if $swapvar == 0
	vb1 = ResourceNingguangBlend.0
	handling = skip
	draw = 57422,0
else if $swapvar == 1
	vb1 = ResourceNingguangBlend.1
	handling = skip
	draw = 56759,0
endif

[CommandListNingguangTexcoord]
if $swapvar == 0
	vb1 = ResourceNingguangTexcoord.0
else if $swapvar == 1
	vb1 = ResourceNingguangTexcoord.1
endif

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

[CommandListNingguangHead]
if $swapvar == 0
	ib = ResourceNingguangHeadIB.0
	ps-t0 = ResourceNingguangHeadDiffuse.0
	ps-t1 = ResourceNingguangHeadLightMap.0
else if $swapvar == 1
	ib = ResourceNingguangHeadIB.1
	ps-t0 = ResourceNingguangHeadDiffuse.1
	ps-t1 = ResourceNingguangHeadLightMap.1
endif

[CommandListNingguangBody]
if $swapvar == 0
	ib = ResourceNingguangBodyIB.0
	ps-t0 = ResourceNingguangBodyDiffuse.0
	ps-t1 = ResourceNingguangBodyLightMap.0
else if $swapvar == 1
	ib = ResourceNingguangBodyIB.1
	ps-t0 = ResourceNingguangBodyDiffuse.1
	ps-t1 = ResourceNingguangBodyLightMap.1
endif

[CommandListNingguangDress]
if $swapvar == 0
	ib = ResourceNingguangDressIB.0
	ps-t0 = ResourceNingguangDressDiffuse.0
	ps-t1 = ResourceNingguangDressLightMap.0
else if $swapvar == 1
	ib = ResourceNingguangDressIB.1
	ps-t0 = ResourceNingguangDressDiffuse.1
	ps-t1 = ResourceNingguangDressLightMap.1
endif

[CommandListNingguangFaceHeadDiffuse]
if $swapvar == 0
	this = ResourceNingguangFaceHeadDiffuse.0
else if $swapvar == 1
	this = ResourceNingguangFaceHeadDiffuse.1
endif

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

[ResourceNingguangPosition.0]
type = Buffer
stride = 40
filename = .\NingguangMod_basic\NingguangMod\NingguangPosition.buf

[ResourceNingguangBlend.0]
type = Buffer
stride = 32
filename = .\NingguangMod_basic\NingguangMod\NingguangBlend.buf

[ResourceNingguangTexcoord.0]
type = Buffer
stride = 20
filename = .\NingguangMod_basic\NingguangMod\NingguangTexcoord.buf

[ResourceNingguangHeadIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\NingguangMod_basic\NingguangMod\NingguangHead.ib

[ResourceNingguangBodyIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\NingguangMod_basic\NingguangMod\NingguangBody.ib

[ResourceNingguangDressIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\NingguangMod_basic\NingguangMod\NingguangDress.ib

[ResourceNingguangHeadDiffuse.0]
filename = .\NingguangMod_basic\NingguangMod\NingguangHeadDiffuse.dds

[ResourceNingguangHeadLightMap.0]
filename = .\NingguangMod_basic\NingguangMod\NingguangHeadLightMap.dds

[ResourceNingguangBodyDiffuse.0]
filename = .\NingguangMod_basic\NingguangMod\NingguangBodyDiffuse.dds

[ResourceNingguangBodyLightMap.0]
filename = .\NingguangMod_basic\NingguangMod\NingguangBodyLightMap.dds

[ResourceNingguangDressDiffuse.0]
filename = .\NingguangMod_basic\NingguangMod\NingguangDressDiffuse.dds

[ResourceNingguangDressLightMap.0]
filename = .\NingguangMod_basic\NingguangMod\NingguangDressLightMap.dds

[ResourceNingguangFaceHeadDiffuse.0]
filename = .\NingguangMod_basic\NingguangMod\NingguangFaceHeadDiffuse.dds

[ResourceNingguangPosition.1]
type = Buffer
stride = 40
filename = .\NingguangMod_part_dress\NingguangMod\NingguangPosition.buf

[ResourceNingguangBlend.1]
type = Buffer
stride = 32
filename = .\NingguangMod_part_dress\NingguangMod\NingguangBlend.buf

[ResourceNingguangTexcoord.1]
type = Buffer
stride = 20
filename = .\NingguangMod_part_dress\NingguangMod\NingguangTexcoord.buf

[ResourceNingguangHeadIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\NingguangMod_part_dress\NingguangMod\NingguangHead.ib

[ResourceNingguangBodyIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\NingguangMod_part_dress\NingguangMod\NingguangBody.ib

[ResourceNingguangDressIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\NingguangMod_part_dress\NingguangMod\NingguangDress.ib

[ResourceNingguangHeadDiffuse.1]
filename = .\NingguangMod_part_dress\NingguangMod\NingguangHeadDiffuse.dds

[ResourceNingguangHeadLightMap.1]
filename = .\NingguangMod_part_dress\NingguangMod\NingguangHeadLightMap.dds

[ResourceNingguangBodyDiffuse.1]
filename = .\NingguangMod_part_dress\NingguangMod\NingguangBodyDiffuse.dds

[ResourceNingguangBodyLightMap.1]
filename = .\NingguangMod_part_dress\NingguangMod\NingguangBodyLightMap.dds

[ResourceNingguangDressDiffuse.1]
filename = .\NingguangMod_part_dress\NingguangMod\NingguangDressDiffuse.dds

[ResourceNingguangDressLightMap.1]
filename = .\NingguangMod_part_dress\NingguangMod\NingguangDressLightMap.dds

[ResourceNingguangFaceHeadDiffuse.1]
filename = .\NingguangMod_part_dress\NingguangMod\NingguangFaceHeadDiffuse.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