; Merged Mod: .\RockKafka-Covered\Kafka.ini, .\RockKafka-Exposed\Kafka.ini

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

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

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

[KeySwapTex]
condition = $active == 1
key = VK_LEFT
type = cycle
$swapvart = 0,1
$creditinfo = 0

[Present]
post $active = 0


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

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

[TextureOverrideKafkaHairPosition]
hash = cdda77a3
run = CommandListKafkaHairPosition
$active = 1

[TextureOverrideKafkaHairTexcoord]
hash = ddbe6ba2
run = CommandListKafkaHairTexcoord

[TextureOverrideKafkaHairVertexLimitRaise]
hash = 132595c5

[TextureOverrideKafkaHeadPosition]
hash = 7cbe836d
run = CommandListKafkaHeadPosition
$active = 1

[TextureOverrideKafkaHeadTexcoord]
hash = 7a892b79
run = CommandListKafkaHeadTexcoord

[TextureOverrideKafkaHeadVertexLimitRaise]
hash = 48576da3

[TextureOverrideKafkaBodyPosition]
hash = deb266a8
run = CommandListKafkaBodyPosition
$active = 1

[TextureOverrideKafkaBodyPosition2]
hash = cd2222f8
run = CommandListKafkaBodyPosition2
$active = 1

[TextureOverrideKafkaBodyTexcoord]
hash = d14b435e
run = CommandListKafkaBodyTexcoord

[TextureOverrideKafkaBodyVertexLimitRaise]
hash = 6d45dac8

[TextureOverrideKafkaHairIB]
hash = f82cf281
run = CommandListKafkaHairIB

[TextureOverrideKafkaHairA]
hash = f82cf281
match_first_index = 0
run = CommandListKafkaHairA

[TextureOverrideKafkaHairADiffuse]
hash = cb354b6b
run = CommandListKafkaHairADiffuse

[TextureOverrideKafkaHairALightMap]
hash = e07efe45
run = CommandListKafkaHairALightMap

[TextureOverrideKafkaHeadIB]
hash = de648f58
run = CommandListKafkaHeadIB

[TextureOverrideKafkaHeadA]
hash = de648f58
match_first_index = 0
run = CommandListKafkaHeadA

[TextureOverrideKafkaHeadADiffuse]
hash = cf90e442
run = CommandListKafkaHeadADiffuse

[TextureOverrideKafkaHeadB]
hash = de648f58
match_first_index = 11292
run = CommandListKafkaHeadB

[TextureOverrideKafkaBodyIB]
hash = fa23099d
run = CommandListKafkaBodyIB

[TextureOverrideKafkaBodyA]
hash = fa23099d
match_first_index = 0
run = CommandListKafkaBodyA

[TextureOverrideKafkaBodyADiffuse]
hash = 207c0559
run = CommandListKafkaBodyADiffuse

[TextureOverrideKafkaBodyALightMap]
hash = 32b5b281
run = CommandListKafkaBodyALightMap

[TextureOverrideKafkaBodyAStockingMap]
hash = fd0ef162
run = CommandListKafkaBodyAStockingMap

[TextureOverrideKafkaBodyB]
hash = fa23099d
match_first_index = 8787
run = CommandListKafkaBodyB

[TextureOverrideKafkaBodyC]
hash = fa23099d
match_first_index = 16083
run = CommandListKafkaBodyC

[TextureOverrideKafkaBodyCDiffuse]
hash = c00b55bc
run = CommandListKafkaBodyCDiffuse

[TextureOverrideKafkaBodyCLightMap]
hash = 45d15ffb
run = CommandListKafkaBodyCLightMap

[TextureOverrideKafkaBodyD]
hash = fa23099d
match_first_index = 35439
run = CommandListKafkaBodyD

[TextureOverrideKafkaBodyE]
hash = fa23099d
match_first_index = 41406
run = CommandListKafkaBodyE

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

[CommandListKafkaHairPosition]
if $swapvar == 0
	handling = skip
	vb0 = ResourceKafkaHairPosition.0
	vb2 = ResourceKafkaHairBlend.0
	draw = 2755,0
	$active = 1
else if $swapvar == 1
	handling = skip
	vb0 = ResourceKafkaHairPosition.1
	vb2 = ResourceKafkaHairBlend.1
	draw = 2755,0
	$active = 1
endif

[CommandListKafkaHairTexcoord]
if $swapvar == 0
	vb1 = ResourceKafkaHairTexcoord.0
else if $swapvar == 1
	vb1 = ResourceKafkaHairTexcoord.1
endif

[CommandListKafkaHeadPosition]
if $swapvar == 0
	handling = skip
	vb0 = ResourceKafkaHeadPosition.0
	vb2 = ResourceKafkaHeadBlend.0
	draw = 2669,0
	$active = 1
else if $swapvar == 1
	handling = skip
	vb0 = ResourceKafkaHeadPosition.1
	vb2 = ResourceKafkaHeadBlend.1
	draw = 2669,0
	$active = 1
endif

[CommandListKafkaHeadTexcoord]
if $swapvar == 0
	vb1 = ResourceKafkaHeadTexcoord.0
else if $swapvar == 1
	vb1 = ResourceKafkaHeadTexcoord.1
endif

[CommandListKafkaBodyPosition]
if $swapvar == 0
	handling = skip
	vb0 = ResourceKafkaBodyPosition.0
	vb2 = ResourceKafkaBodyBlend.0
	draw = 22220,0
	$active = 1
else if $swapvar == 1
	handling = skip
	vb0 = ResourceKafkaBodyPosition.1
	vb2 = ResourceKafkaBodyBlend.1
	draw = 20695,0
	$active = 1
endif

[CommandListKafkaBodyPosition2]
if $swapvar == 0
	handling = skip
	vb0 = ResourceKafkaBodyPosition.0
	vb2 = ResourceKafkaBodyBlend.0
	draw = 22220,0
	$active = 1
else if $swapvar == 1
	handling = skip
	vb0 = ResourceKafkaBodyPosition.1
	vb2 = ResourceKafkaBodyBlend.1
	draw = 20695,0
	$active = 1
endif

[CommandListKafkaBodyTexcoord]
if $swapvar == 0
	vb1 = ResourceKafkaBodyTexcoord.0
else if $swapvar == 1
	vb1 = ResourceKafkaBodyTexcoord.1
endif

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

[CommandListKafkaHairA]
if $swapvar == 0
	ib = ResourceKafkaHairAIB.0
else if $swapvar == 1
	ib = ResourceKafkaHairAIB.1
endif

[CommandListKafkaHairADiffuse]
if $swapvar == 0
	this = ResourceKafkaHairADiffuse.0
else if $swapvar == 1
	this = ResourceKafkaHairADiffuse.1
endif

[CommandListKafkaHairALightMap]
if $swapvar == 0
	this = ResourceKafkaHairALightMap.0
else if $swapvar == 1
	this = ResourceKafkaHairALightMap.1
endif

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

[CommandListKafkaHeadA]
if $swapvar == 0
	ib = ResourceKafkaHeadAIB.0
else if $swapvar == 1
	ib = ResourceKafkaHeadAIB.1
endif

[CommandListKafkaHeadADiffuse]
if $swapvar == 0
	this = ResourceKafkaHeadADiffuse.0
else if $swapvar == 1
	this = ResourceKafkaHeadADiffuse.1
endif

[CommandListKafkaHeadB]
if $swapvar == 0
	ib = ResourceKafkaHeadBIB.0
else if $swapvar == 1
	ib = ResourceKafkaHeadBIB.1
endif

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

[CommandListKafkaBodyA]
if $swapvar == 0
	ib = ResourceKafkaBodyAIB.0
else if $swapvar == 1
	ib = ResourceKafkaBodyAIB.1
endif

[CommandListKafkaBodyADiffuse]
if $swapvar == 0
	this = ResourceKafkaBodyADiffuse.0
else if $swapvar == 1
	this = ResourceKafkaBodyADiffuse.1
endif

[CommandListKafkaBodyALightMap]
if $swapvar == 0
	this = ResourceKafkaBodyALightMap.0
else if $swapvar == 1
	this = ResourceKafkaBodyALightMap.1
endif

[CommandListKafkaBodyAStockingMap]
if $swapvar == 0
	this = ResourceKafkaBodyAStockingMap.0
else if $swapvar == 1
	this = ResourceKafkaBodyAStockingMap.1
endif

[CommandListKafkaBodyB]
if $swapvar == 0
	ib = ResourceKafkaBodyBIB.0
else if $swapvar == 1
	ib = ResourceKafkaBodyBIB.1
endif

[CommandListKafkaBodyC]
if $swapvar == 0
	ib = ResourceKafkaBodyCIB.0
else if $swapvar == 1
	ib = ResourceKafkaBodyCIB.1
endif

[CommandListKafkaBodyCDiffuse]
if $swapvar == 0
	if $swapvart == 0
	this = ResourceKafkaBodyCDiffuse.0
	else if $swapvart == 1
	this = ResourceKafkaBodyCDiffuse1.0
	endif
else if $swapvar == 1
	if $swapvart == 0
	this = ResourceKafkaBodyCDiffuse.1
	else if $swapvart == 1
	this = ResourceKafkaBodyCDiffuse1.1
	endif
endif

[CommandListKafkaBodyCLightMap]
if $swapvar == 0
	if $swapvart == 0
	this = ResourceKafkaBodyCLightMap.0
	else if $swapvart == 1
	this = ResourceKafkaBodyCLightMap1.0
	endif
else if $swapvar == 1
	if $swapvart == 0
	this = ResourceKafkaBodyCLightMap.1
	else if $swapvart == 1
	this = ResourceKafkaBodyCLightMap1.1
	endif
endif

[CommandListKafkaBodyD]
if $swapvar == 0
	ib = ResourceKafkaBodyDIB.0
else if $swapvar == 1
	ib = ResourceKafkaBodyDIB.1
endif

[CommandListKafkaBodyE]
if $swapvar == 0
	ib = ResourceKafkaBodyEIB.0
else if $swapvar == 1
	ib = ResourceKafkaBodyEIB.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 ---------------------------

[ResourceKafkaHairPosition.0]
type = Buffer
stride = 40
filename = .\RockKafka-Covered\KafkaHairPosition.buf

[ResourceKafkaHairBlend.0]
type = Buffer
stride = 32
filename = .\RockKafka-Covered\KafkaHairBlend.buf

[ResourceKafkaHairTexcoord.0]
type = Buffer
stride = 8
filename = .\RockKafka-Covered\KafkaHairTexcoord.buf

[ResourceKafkaHeadPosition.0]
type = Buffer
stride = 40
filename = .\RockKafka-Covered\KafkaHeadPosition.buf

[ResourceKafkaHeadBlend.0]
type = Buffer
stride = 32
filename = .\RockKafka-Covered\KafkaHeadBlend.buf

[ResourceKafkaHeadTexcoord.0]
type = Buffer
stride = 12
filename = .\RockKafka-Covered\KafkaHeadTexcoord.buf

[ResourceKafkaBodyPosition.0]
type = Buffer
stride = 40
filename = .\RockKafka-Covered\KafkaBodyPosition.buf

[ResourceKafkaBodyBlend.0]
type = Buffer
stride = 32
filename = .\RockKafka-Covered\KafkaBodyBlend.buf

[ResourceKafkaBodyTexcoord.0]
type = Buffer
stride = 20
filename = .\RockKafka-Covered\KafkaBodyTexcoord.buf

[ResourceKafkaHairAIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\RockKafka-Covered\KafkaHairA.ib

[ResourceKafkaHeadAIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\RockKafka-Covered\KafkaHeadA.ib

[ResourceKafkaHeadBIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\RockKafka-Covered\KafkaHeadB.ib

[ResourceKafkaBodyAIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\RockKafka-Covered\KafkaBodyA.ib

[ResourceKafkaBodyBIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\RockKafka-Covered\KafkaBodyB.ib

[ResourceKafkaBodyCIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\RockKafka-Covered\KafkaBodyC.ib

[ResourceKafkaBodyDIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\RockKafka-Covered\KafkaBodyD.ib

[ResourceKafkaBodyEIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\RockKafka-Covered\KafkaBodyE.ib

[ResourceKafkaHairADiffuse.0]
filename = .\RockKafka-Covered\KafkaHairADiffuse.dds

[ResourceKafkaHairALightMap.0]
filename = .\RockKafka-Covered\KafkaHairALightMap.dds

[ResourceKafkaHeadADiffuse.0]
filename = .\RockKafka-Covered\KafkaHeadADiffuse.dds

[ResourceKafkaBodyADiffuse.0]
filename = .\RockKafka-Covered\KafkaBodyADiffuse.dds

[ResourceKafkaBodyALightMap.0]
filename = .\RockKafka-Covered\KafkaBodyALightMap.dds

[ResourceKafkaBodyAStockingMap.0]
filename = .\RockKafka-Covered\KafkaBodyAStockingMap.dds

[ResourceKafkaBodyCDiffuse.0]
filename = .\RockKafka-Covered\KafkaBodyCDiffuse.dds

[ResourceKafkaBodyCLightMap.0]
filename = .\RockKafka-Covered\KafkaBodyCLightMap.dds

[ResourceKafkaBodyCDiffuse1.0]
filename = .\RockKafka-Covered\KafkaBodyCDiffuse1.dds

[ResourceKafkaBodyCLightMap1.0]
filename = .\RockKafka-Covered\KafkaBodyCLightMap1.dds

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

[ResourceKafkaHairPosition.1]
type = Buffer
stride = 40
filename = .\RockKafka-Covered\KafkaHairPosition.buf

[ResourceKafkaHairBlend.1]
type = Buffer
stride = 32
filename = .\RockKafka-Covered\KafkaHairBlend.buf

[ResourceKafkaHairTexcoord.1]
type = Buffer
stride = 8
filename = .\RockKafka-Covered\KafkaHairTexcoord.buf

[ResourceKafkaHeadPosition.1]
type = Buffer
stride = 40
filename = .\RockKafka-Covered\KafkaHeadPosition.buf

[ResourceKafkaHeadBlend.1]
type = Buffer
stride = 32
filename = .\RockKafka-Covered\KafkaHeadBlend.buf

[ResourceKafkaHeadTexcoord.1]
type = Buffer
stride = 12
filename = .\RockKafka-Covered\KafkaHeadTexcoord.buf

[ResourceKafkaBodyPosition.1]
type = Buffer
stride = 40
filename = .\RockKafka-Exposed\KafkaBodyPosition.buf

[ResourceKafkaBodyBlend.1]
type = Buffer
stride = 32
filename = .\RockKafka-Exposed\KafkaBodyBlend.buf

[ResourceKafkaBodyTexcoord.1]
type = Buffer
stride = 20
filename = .\RockKafka-Exposed\KafkaBodyTexcoord.buf

[ResourceKafkaHairAIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\RockKafka-Covered\KafkaHairA.ib

[ResourceKafkaHeadAIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\RockKafka-Covered\KafkaHeadA.ib

[ResourceKafkaHeadBIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\RockKafka-Covered\KafkaHeadB.ib

[ResourceKafkaBodyAIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\RockKafka-Covered\KafkaBodyA.ib

[ResourceKafkaBodyBIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\RockKafka-Covered\KafkaBodyB.ib

[ResourceKafkaBodyCIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\RockKafka-Exposed\KafkaBodyC.ib

[ResourceKafkaBodyDIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\RockKafka-Exposed\KafkaBodyD.ib

[ResourceKafkaBodyEIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\RockKafka-Exposed\KafkaBodyE.ib

[ResourceKafkaHairADiffuse.1]
filename = .\RockKafka-Covered\KafkaHairADiffuse.dds

[ResourceKafkaHairALightMap.1]
filename = .\RockKafka-Covered\KafkaHairALightMap.dds

[ResourceKafkaHeadADiffuse.1]
filename = .\RockKafka-Covered\KafkaHeadADiffuse.dds

[ResourceKafkaBodyADiffuse.1]
filename = .\RockKafka-Covered\KafkaBodyADiffuse.dds

[ResourceKafkaBodyALightMap.1]
filename = .\RockKafka-Covered\KafkaBodyALightMap.dds

[ResourceKafkaBodyAStockingMap.1]
filename = .\RockKafka-Covered\KafkaBodyAStockingMap.dds

[ResourceKafkaBodyCDiffuse.1]
filename = .\RockKafka-Covered\KafkaBodyCDiffuse.dds

[ResourceKafkaBodyCLightMap.1]
filename = .\RockKafka-Covered\KafkaBodyCLightMap.dds

[ResourceKafkaBodyCDiffuse1.1]
filename = .\RockKafka-Covered\KafkaBodyCDiffuse1.dds

[ResourceKafkaBodyCLightMap1.1]
filename = .\RockKafka-Covered\KafkaBodyCLightMap1.dds

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



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