; Merged Mod: .\human\herta.ini, .\human shoes\herta.ini, .\puppet\herta.ini, .\puppet shoes\herta.ini

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

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

[KeySwap]
condition = $active == 1
key = h
type = cycle
$swapvar = 0,1,2,3
$creditinfo = 0

[Present]
post $active = 0

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

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

[TextureOverridehertaBlend]
hash = d7ccfed7
run = CommandListhertaBlend
$active = 1

[TextureOverridehertaTexcoord]
hash = 91c0cb8e
run = CommandListhertaTexcoord

[TextureOverridehertaVertexLimitDraw]
hash = cf1012f5
override_vertex_count = 26430
override_byte_stride = 40
uav_byte_stride = 4

[TextureOverridehertaIB]
hash = 9553ff35
run = CommandListhertaIB

[TextureOverridehertaA]
hash = 9553ff35
match_first_index = 0
if ps-t0 == 4901341
	ps-t4 = Resourcewhite
endif
run = CommandListhertaA

[TextureOverridehertaB]
hash = 9553ff35
match_first_index = 53166
if ps-t0 == 4901341
	ps-t4 = Resourcewhite
endif
run = CommandListhertaB

[TextureOverridehertaADiffuse]
hash = e07c10c9
filter_index = 37

[TextureOverridehertaALightMap]
hash = b878ef55
filter_index = 38

[TextureOverrideCyreneUlt1]
hash = 49b01341
filter_index = 4901341

[TextureOverrideCyreneUlt2]
hash = 8a1e699d
filter_index = 4901341

[TextureOverrideCyreneUlt3]
hash = 19e9fca5
filter_index = 4901341

[Resourcewhite]
filename = white.dds

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

[CommandListhertaBlend]
if $swapvar == 0
	handling = skip
	vb2 = ResourcehertaBlend.0
	if DRAW_TYPE == 1
		vb0 = ResourcehertaPosition.0
		draw = 15284, 0
	endif

	if DRAW_TYPE == 8
		Resource\SRMI\PositionBuffer = ref ResourcehertaPosition.0CS
		Resource\SRMI\BlendBuffer = ref ResourcehertaBlend.0CS
		$\SRMI\vertex_count = 15284
	endif
else if $swapvar == 1
	handling = skip
	vb2 = ResourcehertaBlend.1
	if DRAW_TYPE == 1
		vb0 = ResourcehertaPosition.1
		draw = 13649, 0
	endif

	if DRAW_TYPE == 8
		Resource\SRMI\PositionBuffer = ref ResourcehertaPosition.1CS
		Resource\SRMI\BlendBuffer = ref ResourcehertaBlend.1CS
		$\SRMI\vertex_count = 13649
	endif
else if $swapvar == 2
	handling = skip
	vb2 = ResourcehertaBlend.2
	if DRAW_TYPE == 1
		vb0 = ResourcehertaPosition.2
		draw = 26430, 0
	endif

	if DRAW_TYPE == 8
		Resource\SRMI\PositionBuffer = ref ResourcehertaPosition.2CS
		Resource\SRMI\BlendBuffer = ref ResourcehertaBlend.2CS
		$\SRMI\vertex_count = 26430
	endif
else if $swapvar == 3
	handling = skip
	vb2 = ResourcehertaBlend.3
	if DRAW_TYPE == 1
		vb0 = ResourcehertaPosition.3
		draw = 22150, 0
	endif

	if DRAW_TYPE == 8
		Resource\SRMI\PositionBuffer = ref ResourcehertaPosition.3CS
		Resource\SRMI\BlendBuffer = ref ResourcehertaBlend.3CS
		$\SRMI\vertex_count = 22150
	endif
endif

[CommandListhertaTexcoord]
if $swapvar == 0
	vb1 = ResourcehertaTexcoord.0
else if $swapvar == 1
	vb1 = ResourcehertaTexcoord.1
else if $swapvar == 2
	vb1 = ResourcehertaTexcoord.2
else if $swapvar == 3
	vb1 = ResourcehertaTexcoord.3
endif

[CommandListhertaIB]
if $swapvar == 0
	handling = skip
	drawindexed = auto
else if $swapvar == 1
	handling = skip
	drawindexed = auto
else if $swapvar == 2
	handling = skip
	drawindexed = auto
else if $swapvar == 3
	handling = skip
	drawindexed = auto
endif

[CommandListhertaA]
if $swapvar == 0
	ib = ResourcehertaAIB.0
	if ps-t0 == 37
		ps-t0 = ResourcehertaADiffuse.0
	elif ps-t0 == 38
		ps-t0 = ResourcehertaALightMap.0
	endif
	if ps-t1 == 38
		ps-t1 = ResourcehertaALightMap.0
	endif
	if ps-t1 == 37
		ps-t1 = ResourcehertaADiffuse.0
	elif ps-t1 == 38
		ps-t1 = ResourcehertaALightMap.0
	endif
	if ps-t2 == 38
		ps-t2 = ResourcehertaALightMap.0
	endif

	if ps-t2 == 37
		ps-t2 = ResourcehertaADiffuse.0
	endif
	if ps-t3 == 38
		ps-t3 = ResourcehertaALightMap.0
	endif
	if ps-t4 == 37
		ps-t4 = ResourcehertaADiffuse.0
	endif
	if ps-t5 == 38
		ps-t5 = ResourcehertaALightMap.0
	endif
else if $swapvar == 1
	ib = ResourcehertaAIB.1
	if ps-t0 == 37
		ps-t0 = ResourcehertaADiffuse.1
	elif ps-t0 == 38
		ps-t0 = ResourcehertaALightMap.1
	endif
	if ps-t1 == 38
		ps-t1 = ResourcehertaALightMap.1
	endif
	if ps-t1 == 37
		ps-t1 = ResourcehertaADiffuse.1
	elif ps-t1 == 38
		ps-t1 = ResourcehertaALightMap.1
	endif
	if ps-t2 == 38
		ps-t2 = ResourcehertaALightMap.1
	endif

	if ps-t2 == 37
		ps-t2 = ResourcehertaADiffuse.1
	endif
	if ps-t3 == 38
		ps-t3 = ResourcehertaALightMap.1
	endif
	if ps-t4 == 37
		ps-t4 = ResourcehertaADiffuse.1
	endif
	if ps-t5 == 38
		ps-t5 = ResourcehertaALightMap.1
	endif
else if $swapvar == 2
	ib = ResourcehertaAIB.2
	if ps-t0 == 37
		ps-t0 = ResourcehertaADiffuse.2
	elif ps-t0 == 38
		ps-t0 = ResourcehertaALightMap.2
	endif
	if ps-t1 == 38
		ps-t1 = ResourcehertaALightMap.2
	endif
	if ps-t1 == 37
		ps-t1 = ResourcehertaADiffuse.2
	elif ps-t1 == 38
		ps-t1 = ResourcehertaALightMap.2
	endif
	if ps-t2 == 38
		ps-t2 = ResourcehertaALightMap.2
	endif

	if ps-t2 == 37
		ps-t2 = ResourcehertaADiffuse.2
	endif
	if ps-t3 == 38
		ps-t3 = ResourcehertaALightMap.2
	endif
	if ps-t4 == 37
		ps-t4 = ResourcehertaADiffuse.2
	endif
	if ps-t5 == 38
		ps-t5 = ResourcehertaALightMap.2
	endif
else if $swapvar == 3
	ib = ResourcehertaAIB.3
	if ps-t0 == 37
		ps-t0 = ResourcehertaADiffuse.3
	elif ps-t0 == 38
		ps-t0 = ResourcehertaALightMap.3
	endif
	if ps-t1 == 38
		ps-t1 = ResourcehertaALightMap.3
	endif
	if ps-t1 == 37
		ps-t1 = ResourcehertaADiffuse.3
	elif ps-t1 == 38
		ps-t1 = ResourcehertaALightMap.3
	endif
	if ps-t2 == 38
		ps-t2 = ResourcehertaALightMap.3
	endif

	if ps-t2 == 37
		ps-t2 = ResourcehertaADiffuse.3
	endif
	if ps-t3 == 38
		ps-t3 = ResourcehertaALightMap.3
	endif
	if ps-t4 == 37
		ps-t4 = ResourcehertaADiffuse.3
	endif
	if ps-t5 == 38
		ps-t5 = ResourcehertaALightMap.3
	endif
endif

[CommandListhertaB]
if $swapvar == 0
	ib = ResourcehertaBIB.0
	if ps-t0 == 37
		ps-t0 = ResourcehertaBDiffuse.0
	elif ps-t0 == 38
		ps-t0 = ResourcehertaBLightMap.0
	endif
	if ps-t1 == 38
		ps-t1 = ResourcehertaBLightMap.0
	endif
	if ps-t1 == 37
		ps-t1 = ResourcehertaBDiffuse.0
	elif ps-t1 == 38
		ps-t1 = ResourcehertaBLightMap.0
	endif
	if ps-t2 == 38
		ps-t2 = ResourcehertaBLightMap.0
	endif

	if ps-t2 == 37
		ps-t2 = ResourcehertaBDiffuse.0
	endif
	if ps-t3 == 38
		ps-t3 = ResourcehertaBLightMap.0
	endif
	if ps-t4 == 37
		ps-t4 = ResourcehertaBDiffuse.0
	endif
	if ps-t5 == 38
		ps-t5 = ResourcehertaBLightMap.0
	endif
else if $swapvar == 1
	ib = ResourcehertaBIB.1
	if ps-t0 == 37
		ps-t0 = ResourcehertaBDiffuse.1
	elif ps-t0 == 38
		ps-t0 = ResourcehertaBLightMap.1
	endif
	if ps-t1 == 38
		ps-t1 = ResourcehertaBLightMap.1
	endif
	if ps-t1 == 37
		ps-t1 = ResourcehertaBDiffuse.1
	elif ps-t1 == 38
		ps-t1 = ResourcehertaBLightMap.1
	endif
	if ps-t2 == 38
		ps-t2 = ResourcehertaBLightMap.1
	endif

	if ps-t2 == 37
		ps-t2 = ResourcehertaBDiffuse.1
	endif
	if ps-t3 == 38
		ps-t3 = ResourcehertaBLightMap.1
	endif
	if ps-t4 == 37
		ps-t4 = ResourcehertaBDiffuse.1
	endif
	if ps-t5 == 38
		ps-t5 = ResourcehertaBLightMap.1
	endif
else if $swapvar == 2
	ib = ResourcehertaBIB.2
	if ps-t0 == 37
		ps-t0 = ResourcehertaBDiffuse.2
	elif ps-t0 == 38
		ps-t0 = ResourcehertaBLightMap.2
	endif
	if ps-t1 == 38
		ps-t1 = ResourcehertaBLightMap.2
	endif
	if ps-t1 == 37
		ps-t1 = ResourcehertaBDiffuse.2
	elif ps-t1 == 38
		ps-t1 = ResourcehertaBLightMap.2
	endif
	if ps-t2 == 38
		ps-t2 = ResourcehertaBLightMap.2
	endif

	if ps-t2 == 37
		ps-t2 = ResourcehertaBDiffuse.2
	endif
	if ps-t3 == 38
		ps-t3 = ResourcehertaBLightMap.2
	endif
	if ps-t4 == 37
		ps-t4 = ResourcehertaBDiffuse.2
	endif
	if ps-t5 == 38
		ps-t5 = ResourcehertaBLightMap.2
	endif
else if $swapvar == 3
	ib = ResourcehertaBIB.3
	if ps-t0 == 37
		ps-t0 = ResourcehertaBDiffuse.3
	elif ps-t0 == 38
		ps-t0 = ResourcehertaBLightMap.3
	endif
	if ps-t1 == 38
		ps-t1 = ResourcehertaBLightMap.3
	endif
	if ps-t1 == 37
		ps-t1 = ResourcehertaBDiffuse.3
	elif ps-t1 == 38
		ps-t1 = ResourcehertaBLightMap.3
	endif
	if ps-t2 == 38
		ps-t2 = ResourcehertaBLightMap.3
	endif

	if ps-t2 == 37
		ps-t2 = ResourcehertaBDiffuse.3
	endif
	if ps-t3 == 38
		ps-t3 = ResourcehertaBLightMap.3
	endif
	if ps-t4 == 37
		ps-t4 = ResourcehertaBDiffuse.3
	endif
	if ps-t5 == 38
		ps-t5 = ResourcehertaBLightMap.3
	endif
endif

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

[ResourcehertaPosition.0]
type = Buffer
stride = 40
filename = .\human\hertaPosition.buf

[ResourcehertaBlend.0]
type = Buffer
stride = 32
filename = .\human\hertaBlend.buf

[ResourcehertaTexcoord.0]
type = Buffer
stride = 20
filename = .\human\hertaTexcoord.buf

[ResourcehertaAIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\human\hertaA.ib

[ResourcehertaBIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\human\hertaB.ib

[ResourcehertaADiffuse.0]
filename = .\human\hertaADiffuse.dds

[ResourcehertaALightMap.0]
filename = .\human\hertaALightMap.dds

[ResourcehertaBDiffuse.0]
filename = .\human\hertaBDiffuse.dds

[ResourcehertaBLightMap.0]
filename = .\human\hertaBLightMap.dds

[ResourcehertaPosition.1]
type = Buffer
stride = 40
filename = .\human shoes\hertaPosition.buf

[ResourcehertaBlend.1]
type = Buffer
stride = 32
filename = .\human shoes\hertaBlend.buf

[ResourcehertaTexcoord.1]
type = Buffer
stride = 20
filename = .\human shoes\hertaTexcoord.buf

[ResourcehertaAIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\human shoes\hertaA.ib

[ResourcehertaBIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\human shoes\hertaB.ib

[ResourcehertaADiffuse.1]
filename = .\human shoes\hertaADiffuse.dds

[ResourcehertaALightMap.1]
filename = .\human shoes\hertaALightMap.dds

[ResourcehertaBDiffuse.1]
filename = .\human shoes\hertaBDiffuse.dds

[ResourcehertaBLightMap.1]
filename = .\human shoes\hertaBLightMap.dds

[ResourcehertaPosition.2]
type = Buffer
stride = 40
filename = .\puppet\hertaPosition.buf

[ResourcehertaBlend.2]
type = Buffer
stride = 32
filename = .\puppet\hertaBlend.buf

[ResourcehertaTexcoord.2]
type = Buffer
stride = 20
filename = .\puppet\hertaTexcoord.buf

[ResourcehertaAIB.2]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\puppet\hertaA.ib

[ResourcehertaBIB.2]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\puppet\hertaB.ib

[ResourcehertaADiffuse.2]
filename = .\puppet\hertaADiffuse.dds

[ResourcehertaALightMap.2]
filename = .\puppet\hertaALightMap.dds

[ResourcehertaBDiffuse.2]
filename = .\puppet\hertaBDiffuse.dds

[ResourcehertaBLightMap.2]
filename = .\puppet\hertaBLightMap.dds

[ResourcehertaPosition.3]
type = Buffer
stride = 40
filename = .\puppet shoes\hertaPosition.buf

[ResourcehertaBlend.3]
type = Buffer
stride = 32
filename = .\puppet shoes\hertaBlend.buf

[ResourcehertaTexcoord.3]
type = Buffer
stride = 20
filename = .\puppet shoes\hertaTexcoord.buf

[ResourcehertaAIB.3]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\puppet shoes\hertaA.ib

[ResourcehertaBIB.3]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\puppet shoes\hertaB.ib

[ResourcehertaADiffuse.3]
filename = .\puppet shoes\hertaADiffuse.dds

[ResourcehertaALightMap.3]
filename = .\puppet shoes\hertaALightMap.dds

[ResourcehertaBDiffuse.3]
filename = .\puppet shoes\hertaBDiffuse.dds

[ResourcehertaBLightMap.3]
filename = .\puppet shoes\hertaBLightMap.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

[TextureOverride20fixA]
hash = 9553ff35
match_first_index = 8814
ib = null

[Constants]
global $_blend_

[ResourcehertaPosition.0CS]
type = StructuredBuffer
stride = 40
filename = .\human\hertaPosition.buf

[ResourcehertaBlend.0CS]
type = StructuredBuffer
stride = 32
filename = .\human\hertaBlend.buf

[ResourcehertaPosition.1CS]
type = StructuredBuffer
stride = 40
filename = .\human shoes\hertaPosition.buf

[ResourcehertaBlend.1CS]
type = StructuredBuffer
stride = 32
filename = .\human shoes\hertaBlend.buf

[ResourcehertaPosition.2CS]
type = StructuredBuffer
stride = 40
filename = .\puppet\hertaPosition.buf

[ResourcehertaBlend.2CS]
type = StructuredBuffer
stride = 32
filename = .\puppet\hertaBlend.buf

[ResourcehertaPosition.3CS]
type = StructuredBuffer
stride = 40
filename = .\puppet shoes\hertaPosition.buf

[ResourcehertaBlend.3CS]
type = StructuredBuffer
stride = 32
filename = .\puppet shoes\hertaBlend.buf

[Resourcecf1012f5DrawCS]
type = RWStructuredBuffer
array = 26430
data = R32_FLOAT 1 2 3 4 5 6 7 8 9 10

