; Merged Mod: .\ClaraModCoat\Clara.ini, .\ClaraModNude\Clara.ini

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

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

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

[Present]
post $active = 0
run = CommandListCreditInfo

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

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

[TextureOverrideClaraHairPosition]
hash = 8c56882c
run = CommandListClaraHairPosition
$active = 1

[TextureOverrideClaraHairTexcoord]
hash = 572f5b77
run = CommandListClaraHairTexcoord

[TextureOverrideClaraHairVertexLimitRaise]
hash = 7365de7c

[TextureOverrideClaraBodyPosition]
hash = 696fa077
run = CommandListClaraBodyPosition
$active = 1

[TextureOverrideClaraBodyTexcoord]
hash = 5dfa8761
run = CommandListClaraBodyTexcoord

[TextureOverrideClaraBodyVertexLimitRaise]
hash = da981c17

[TextureOverrideClaraHairIB]
hash = 58982bbd
run = CommandListClaraHairIB

[TextureOverrideClaraHairA]
hash = 58982bbd
match_first_index = 0
run = CommandListClaraHairA

[TextureOverrideClaraBodyIB]
hash = f92afebc
run = CommandListClaraBodyIB

[TextureOverrideClaraBodyA]
hash = f92afebc
match_first_index = 0
run = CommandListClaraBodyA

[TextureOverrideClaraBodyB]
hash = f92afebc
match_first_index = 19293
run = CommandListClaraBodyB

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

[CommandListClaraHairPosition]
if $swapvar == 0
	handling = skip
	vb0 = ResourceClaraHairPosition.0
	vb2 = ResourceClaraHairBlend.0
	draw = 4307,0
	$active = 1
else if $swapvar == 1
	handling = skip
	vb0 = ResourceClaraHairPosition.1
	vb2 = ResourceClaraHairBlend.1
	draw = 4307,0
	$active = 1
endif

[CommandListClaraHairTexcoord]
if $swapvar == 0
	vb1 = ResourceClaraHairTexcoord.0
else if $swapvar == 1
	vb1 = ResourceClaraHairTexcoord.1
endif

[CommandListClaraBodyPosition]
if $swapvar == 0
	handling = skip
	vb0 = ResourceClaraBodyPosition.0
	vb2 = ResourceClaraBodyBlend.0
	draw = 120297,0
	$active = 1
else if $swapvar == 1
	handling = skip
	vb0 = ResourceClaraBodyPosition.1
	vb2 = ResourceClaraBodyBlend.1
	draw = 121346,0
	$active = 1
endif

[CommandListClaraBodyTexcoord]
if $swapvar == 0
	vb1 = ResourceClaraBodyTexcoord.0
else if $swapvar == 1
	vb1 = ResourceClaraBodyTexcoord.1
endif

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

[CommandListClaraHairA]
if $swapvar == 0
	ib = ResourceClaraHairAIB.0
	ps-t0 = ResourceClaraHairADiffuse.0
	ps-t1 = ResourceClaraHairALightMap.0
else if $swapvar == 1
	ib = ResourceClaraHairAIB.1
	ps-t0 = ResourceClaraHairADiffuse.1
	ps-t1 = ResourceClaraHairALightMap.1
endif

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

[CommandListClaraBodyA]
if $swapvar == 0
	ib = ResourceClaraBodyAIB.0
	ps-t0 = ResourceClaraBodyADiffuse.0
	ps-t1 = ResourceClaraBodyALightMap.0
else if $swapvar == 1
	ib = null
	ps-t0 = ResourceClaraBodyADiffuse.1
	ps-t1 = ResourceClaraBodyALightMap.1
endif

[CommandListClaraBodyB]
if $swapvar == 0
	ib = ResourceClaraBodyBIB.0
	ps-t0 = ResourceClaraBodyBDiffuse.0
	ps-t1 = ResourceClaraBodyBLightMap.0
else if $swapvar == 1
	ib = ResourceClaraBodyBIB.1
	ps-t0 = ResourceClaraBodyBDiffuse.1
	ps-t1 = ResourceClaraBodyBLightMap.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 ---------------------------

[ResourceClaraHairPosition.0]
type = Buffer
stride = 40
filename = .\ClaraModCoat\ClaraHairPosition.buf

[ResourceClaraHairBlend.0]
type = Buffer
stride = 32
filename = .\ClaraModCoat\ClaraHairBlend.buf

[ResourceClaraHairTexcoord.0]
type = Buffer
stride = 8
filename = .\ClaraModCoat\ClaraHairTexcoord.buf

[ResourceClaraBodyPosition.0]
type = Buffer
stride = 40
filename = .\ClaraModCoat\ClaraBodyPosition.buf

[ResourceClaraBodyBlend.0]
type = Buffer
stride = 32
filename = .\ClaraModCoat\ClaraBodyBlend.buf

[ResourceClaraBodyTexcoord.0]
type = Buffer
stride = 12
filename = .\ClaraModCoat\ClaraBodyTexcoord.buf

[ResourceClaraHairAIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\ClaraModCoat\ClaraHairA.ib

[ResourceClaraBodyAIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\ClaraModCoat\ClaraBodyA.ib

[ResourceClaraBodyBIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\ClaraModCoat\ClaraBodyB.ib

[ResourceClaraHairADiffuse.0]
filename = .\ClaraModCoat\ClaraHairADiffuse.dds

[ResourceClaraHairALightMap.0]
filename = .\ClaraModCoat\ClaraHairALightMap.dds

[ResourceClaraBodyADiffuse.0]
filename = .\ClaraModCoat\ClaraBodyADiffuse.dds

[ResourceClaraBodyALightMap.0]
filename = .\ClaraModCoat\ClaraBodyALightMap.dds

[ResourceClaraBodyBDiffuse.0]
filename = .\ClaraModCoat\ClaraBodyBDiffuse.dds

[ResourceClaraBodyBLightMap.0]
filename = .\ClaraModCoat\ClaraBodyBLightMap.dds

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

[ResourceClaraHairPosition.1]
type = Buffer
stride = 40
filename = .\ClaraModNude\ClaraHairPosition.buf

[ResourceClaraHairBlend.1]
type = Buffer
stride = 32
filename = .\ClaraModNude\ClaraHairBlend.buf

[ResourceClaraHairTexcoord.1]
type = Buffer
stride = 8
filename = .\ClaraModNude\ClaraHairTexcoord.buf

[ResourceClaraBodyPosition.1]
type = Buffer
stride = 40
filename = .\ClaraModNude\ClaraBodyPosition.buf

[ResourceClaraBodyBlend.1]
type = Buffer
stride = 32
filename = .\ClaraModNude\ClaraBodyBlend.buf

[ResourceClaraBodyTexcoord.1]
type = Buffer
stride = 12
filename = .\ClaraModNude\ClaraBodyTexcoord.buf

[ResourceClaraHairAIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\ClaraModNude\ClaraHairA.ib

[ResourceClaraBodyAIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\ClaraModNude\ClaraBodyA.ib

[ResourceClaraBodyBIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\ClaraModNude\ClaraBodyB.ib

[ResourceClaraHairADiffuse.1]
filename = .\ClaraModNude\ClaraHairADiffuse.dds

[ResourceClaraHairALightMap.1]
filename = .\ClaraModNude\ClaraHairALightMap.dds

[ResourceClaraBodyADiffuse.1]
filename = .\ClaraModNude\ClaraBodyADiffuse.dds

[ResourceClaraBodyALightMap.1]
filename = .\ClaraModNude\ClaraBodyALightMap.dds

[ResourceClaraBodyBDiffuse.1]
filename = .\ClaraModNude\ClaraBodyBDiffuse.dds

[ResourceClaraBodyBLightMap.1]
filename = .\ClaraModNude\ClaraBodyBLightMap.dds

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



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