; WWMI ALPHA-2 INI

; Mod State -------------------------

[Constants]
global $required_wwmi_version = 0.70
global $object_guid = 170961
global $mesh_vertex_count = 743641
global $shapekey_vertex_count = 32537
global $mod_id = -1000
global $state_id = 0
global $mod_enabled = 0
global $object_detected = 0


;  -------------------------

global persist $key1=1
global persist $key2=1
global persist $key3=0
global persist $key4=0
global persist $key5=0
global persist $key6=1
global persist $key7=1
global persist $key75=1
global persist $key8=0
global persist $key9=0
global persist $key10=0
global persist $key11=0
global persist $key12=0
global persist $key13=0
global persist $key14=0
global persist $key15=0
global persist $key16=0
global persist $key17=0

;  -------------------------


[key1]
; 髮型切換 (1)
condition= $object_detected
key= |
type = cycle
$key1=0,1


[key2]
; 長髮藤蔓切換 (1)
condition= $object_detected
key= 1
type = cycle
$key2=0,1

[key3]
; 眼睛 (2)
condition= $object_detected
key= 2
type = cycle
$key3=0,1,2,3

[key4]
; 眼罩 (2)
condition= $object_detected
key= 3
type = cycle
$key4=0,1


[key5]
; 上半身切換 (3)
condition= $object_detected
key= 4
type = cycle
$key5=0,1,2,3,4,5,6

[key6]
; 名札切換 (3)
condition= $object_detected
key= 5
type = cycle
$key6=0,1

[key7]
;  胸部衣服切換 (3)
condition= $object_detected
key= 6
type = cycle
$key7=0,1


[key75]
;  胸部托手切換 (3)
condition= $object_detected
key= 7
type = cycle
$key75=0,1




[key8]
; 下半身 (4)
condition= $object_detected
key= 8
type = cycle
$key8=0,1

[key9]
; 擴張 (4)
condition= $object_detected
key= 9
type = cycle
$key9=0,1,2,3,4,5,6

[key10]
; 子宮脫 (4)
condition= $object_detected
key= '
type = cycle
$key10=0,1,2

[key11]
; くり
condition= $object_detected
key= ¿
type = cycle
$key11=0,1,2

[key12]
; カテーテル
condition= $object_detected
key= h
type = cycle
$key12=0,1

[key13]
; 緊身衣
condition= $object_detected
key= j
type = cycle
$key13=0,1

[key14]
; 裝甲  (背部)
condition= $object_detected
key= right
type = cycle
$key14=0,1

[key15]
; 裝甲  (腰飾)
condition= $object_detected
key= left
type = cycle
$key15=0,1,2,3

[key16]
; 手
condition= $object_detected
key= up
type = cycle
$key16=0,1

[key17]
; 腳
condition= $object_detected
key= down
type = cycle
$key17=0,1,2












[Present]
if $object_detected
	if $mod_enabled
		post $object_detected = 0
		run = CommandListUpdateMergedSkeleton
	else
		if $mod_id == -1000
			run = CommandListRegisterMod
		endif
	endif
endif

[CommandListRegisterMod]
$\WWMIv1\required_wwmi_version = $required_wwmi_version
$\WWMIv1\object_guid = $object_guid
Resource\WWMIv1\ModName = ref ResourceModName
Resource\WWMIv1\ModAuthor = ref ResourceModAuthor
Resource\WWMIv1\ModDesc = ref ResourceModDesc
Resource\WWMIv1\ModLink = ref ResourceModLink
Resource\WWMIv1\ModLogo = ref ResourceModLogo
run = CommandList\WWMIv1\RegisterMod
$mod_id = $\WWMIv1\mod_id
if $mod_id >= 0
	$mod_enabled = 1
endif

[CommandListUpdateMergedSkeleton]
if $state_id
	$state_id = 0
else
	$state_id = 1
endif
ResourceMergedSkeleton = copy ResourceMergedSkeletonRW
ResourceExtraMergedSkeleton = copy ResourceExtraMergedSkeletonRW

; Resources: Mod Info -------------------------

[ResourceModName]
type = Buffer
data = "Tsubaki Mod"

[ResourceModAuthor]
type = Buffer
data = "Unknown Author"

[ResourceModDesc]
; type = Buffer
; data = "Empty Mod Description"

[ResourceModLink]
type = Buffer
data = "https://shen18545545.fanbox.cc/"

[ResourceModLogo]
; filename = Textures/Logo.dds

; Shading: Draw Call Stacks Processing -------------------------

[TextureOverrideMarkBoneDataCB]
hash = f02baf77
match_priority = 0
filter_index = 3381.7777

[CommandListMergeSkeleton]
$\WWMIv1\custom_mesh_scale = 1.0
cs-cb8 = ref vs-cb4
cs-u6 = ResourceMergedSkeletonRW
run = CustomShader\WWMIv1\SkeletonMerger
cs-cb8 = ref vs-cb3
cs-u6 = ResourceExtraMergedSkeletonRW
run = CustomShader\WWMIv1\SkeletonMerger

[CommandListTriggerResourceOverrides]
CheckTextureOverride = ps-t0
CheckTextureOverride = ps-t1
CheckTextureOverride = ps-t2
CheckTextureOverride = ps-t3
CheckTextureOverride = ps-t4
CheckTextureOverride = ps-t5
CheckTextureOverride = ps-t6
CheckTextureOverride = ps-t7
CheckTextureOverride = vs-cb3
CheckTextureOverride = vs-cb4

[CommandListOverrideSharedResources]
ResourceBypassVB0 = ref vb0
ib = ResourceIndexBuffer
vb0 = ResourcePositionBuffer
vb1 = ResourceVectorBuffer
vb2 = ResourceTexcoordBuffer
vb3 = ResourceColorBuffer
vb4 = ResourceBlendBuffer
if vs-cb3 == 3381.7777
	vs-cb3 = ResourceExtraMergedSkeleton
endif
if vs-cb4 == 3381.7777
	vs-cb4 = ResourceMergedSkeleton
endif

[CommandListCleanupSharedResources]
vb0 = ref ResourceBypassVB0

[TextureOverrideComponent0]
hash = 7748c1d8
match_first_index = 0
match_index_count = 7464
$object_detected = 1
if $mod_enabled
	local $state_id_0
	if $state_id_0 != $state_id
		$state_id_0 = $state_id
		$\WWMIv1\vg_offset = 0
		$\WWMIv1\vg_count = 21
		run = CommandListMergeSkeleton
	endif
	if ResourceMergedSkeleton !== null
		handling = skip
		run = CommandListTriggerResourceOverrides
		run = CommandListOverrideSharedResources
		; Draw Component 0
		drawindexed = 7464, 0, 0
		run = CommandListCleanupSharedResources
	endif
endif

[TextureOverrideComponent1]
hash = 7748c1d8
match_first_index = 7464
match_index_count = 17802
if $mod_enabled
	local $state_id_1
	if $state_id_1 != $state_id
		$state_id_1 = $state_id
		$\WWMIv1\vg_offset = 21
		$\WWMIv1\vg_count = 10
		run = CommandListMergeSkeleton
	endif
	if ResourceMergedSkeleton !== null
		handling = skip
		run = CommandListTriggerResourceOverrides
		run = CommandListOverrideSharedResources
		; Draw Component 1
		drawindexed = 4782, 7464, 0

; 髮型切換 --------------------------------------------------


		 if $key1 ==0
		; Draw Component 1.短雙馬尾
		drawindexed = 13020, 12246, 0
        endif


		 if $key1 ==1
		; Draw Component 1.長雙馬尾
		drawindexed = 12354, 25266, 0
        endif




;  --------------------------------------------------





		run = CommandListCleanupSharedResources
	endif
endif

[TextureOverrideComponent2]
hash = 7748c1d8
match_first_index = 25266
match_index_count = 12006
if $mod_enabled
	local $state_id_2
	if $state_id_2 != $state_id
		$state_id_2 = $state_id
		$\WWMIv1\vg_offset = 31
		$\WWMIv1\vg_count = 1
		run = CommandListMergeSkeleton
	endif
	if ResourceMergedSkeleton !== null
		handling = skip
		run = CommandListTriggerResourceOverrides
		run = CommandListOverrideSharedResources
		; Draw Component 2
		drawindexed = 12006, 37620, 0
		run = CommandListCleanupSharedResources
	endif
endif

[TextureOverrideComponent3]
hash = 7748c1d8
match_first_index = 37272
match_index_count = 92481
if $mod_enabled
	local $state_id_3
	if $state_id_3 != $state_id
		$state_id_3 = $state_id
		$\WWMIv1\vg_offset = 32
		$\WWMIv1\vg_count = 116
		run = CommandListMergeSkeleton
	endif
	if ResourceMergedSkeleton !== null
		handling = skip
		run = CommandListTriggerResourceOverrides
		run = CommandListOverrideSharedResources
		; Draw Component 3
		drawindexed = 36234, 49626, 0


; 長髮藤蔓切換 --------------------------------------------------

		 if $key2 ==1&&$key1 ==1
		; Draw Component 3.長雙馬尾(藤蔓)
		drawindexed = 384318, 85860, 0
        endif

;  --------------------------------------------------

		run = CommandListCleanupSharedResources
	endif
endif

[TextureOverrideComponent4]
hash = 7748c1d8
match_first_index = 129753
match_index_count = 39228
if $mod_enabled
	local $state_id_4
	if $state_id_4 != $state_id
		$state_id_4 = $state_id
		$\WWMIv1\vg_offset = 148
		$\WWMIv1\vg_count = 61
		run = CommandListMergeSkeleton
	endif
	if ResourceMergedSkeleton !== null
		handling = skip
		run = CommandListTriggerResourceOverrides
		run = CommandListOverrideSharedResources
		; Draw Component 4
		drawindexed = 0, 470178, 0
; 眼睛切換-------------------------------------------

		 if $key3 ==1
		; Draw Component 4.眼睛  無光
		drawindexed = 1896, 3526902, 0
       endif

		 if $key3 ==2
		; Draw Component 4.眼睛  催眠
		drawindexed = 1896, 3523110, 0
        endif

		 if $key3 ==3
		; Draw Component 4.眼睛  愛心
		drawindexed = 1896, 3525006, 0
        endif



; 眼罩切換-------------------------------------------

		 if $key4 ==1
		; Draw Component 4.催眠裝置
		drawindexed = 984, 3356766, 0
        endif



; 上半身切換 --------------------------------------------------


		 if $key5 ==0
		; Draw Component 4.上半身  (一般)
		drawindexed = 20196, 3018180, 0
        endif

		 if $key5 ==1
		; Draw Component 4.上半身  (巨乳)
		drawindexed = 20196, 3047910, 0
        endif

		 if $key5 ==2
		; Draw Component 4.上半身  (巨乳)  單邊擴張
		drawindexed = 35193, 3068106, 0
        endif

		 if $key5 ==3
		; Draw Component 4.上半身  (巨乳)  雙邊擴張
		drawindexed = 50190, 3103299, 0
        endif

		 if $key5 ==4
		; Draw Component 4.上半身  (超乳)
		drawindexed = 20196, 3163023, 0
        endif

		 if $key5 ==5
		; Draw Component 4.上半身  (超乳)  單邊擴張
		drawindexed = 58866, 3183219, 0
        endif

		 if $key5 ==6
		; Draw Component 4.上半身  (超乳)  雙邊擴張
		drawindexed = 71862, 3242085, 0
        endif


; 名札切換--------------------------------------------------

		 if $key6 ==1&&$key5==0
		; Draw Component 4.上半身  (一般) 名札
		drawindexed = 9534, 3038376, 0
        endif

		 if $key6 ==1&&$key5==1
		; Draw Component 4.上半身  (巨乳) 名札
		drawindexed = 9534, 3153489, 0
        endif

		 if $key6 ==1&&$key5==2
		; Draw Component 4.上半身  (巨乳) 名札
		drawindexed = 9534, 3153489, 0
        endif


		 if $key6 ==1&&$key5==4
		; Draw Component 4.上半身  (超乳) 名札
		drawindexed = 9534, 3313947, 0
        endif


		 if $key6 ==1&&$key5==5
		; Draw Component 4.上半身  (超乳) 名札
		drawindexed = 9534, 3313947, 0
        endif


; 胸部衣服切換--------------------------------------------------




		 if $key7 ==1&&$key5==0
		; Draw Component 4.裝甲  (胸部)
		drawindexed = 21600, 3779004, 0
       endif


		 if $key7 ==1&&$key5==1
		; Draw Component 4.裝甲  (巨乳)
		drawindexed = 22182, 3674907, 0
       endif

		 if $key7 ==1&&$key5==2
		; Draw Component 4.裝甲  (巨乳)
		drawindexed = 22182, 3674907, 0
       endif

		 if $key7 ==1&&$key5==3
		; Draw Component 4.裝甲  (巨乳)
		drawindexed = 22182, 3674907, 0
       endif


		 if $key7 ==1&&$key5==4
		; Draw Component 4.裝甲  (超乳)
		drawindexed = 22182, 3815490, 0
       endif

		 if $key7 ==1&&$key5==5
		; Draw Component 4.裝甲  (超乳)
		drawindexed = 22182, 3815490, 0
       endif

		 if $key7 ==1&&$key5==6
		; Draw Component 4.裝甲  (超乳)
		drawindexed = 22182, 3815490, 0
       endif


		 if $key75 ==1&&$key5==4
		; Draw Component 4.裝甲  (超乳) 手
		drawindexed = 10944, 3837672, 0
       endif

		 if $key75 ==1&&$key5==5
		; Draw Component 4.裝甲  (超乳) 手
		drawindexed = 10944, 3837672, 0
       endif

		 if $key75 ==1&&$key5==6
		; Draw Component 4.裝甲  (超乳) 手
		drawindexed = 10944, 3837672, 0
       endif



; 下半身-------------------------------------------


		 if $key8 ==0
		; Draw Component 4.下半身  (一般)
		drawindexed = 20343, 3323481, 0
        endif

		 if $key8 ==1
		; Draw Component 4.下半身  (擴張)
		drawindexed = 12942, 3343824, 0
        endif



; 擴張-------------------------------------------


		 if $key9 ==0&&$key8 ==1
		; Draw Component 4.まんこ  擴張
		drawindexed = 369924, 672066, 0
        endif

		 if $key9 ==1&&$key8 ==1
		; Draw Component 4.まんこ  擴張  尿道
		drawindexed = 361956, 1041990, 0
        endif

		 if $key9 ==2&&$key8 ==1
		; Draw Component 4.まんこ  擴張  尿道+屁眼
		drawindexed = 361956, 1403946, 0
        endif

		 if $key9 ==3&&$key8 ==1
		; Draw Component 4.まんこ  擴張  尿道+陰道
		drawindexed = 258354, 1765902, 0
        endif

		 if $key9 ==4&&$key8 ==1
		; Draw Component 4.まんこ  擴張  尿道+陰道+屁眼
		drawindexed = 258318, 2024256, 0
        endif

		 if $key9 ==5&&$key8 ==1
		; Draw Component 4.まんこ  擴張  屁眼
		drawindexed = 369924, 2282574, 0
        endif

		 if $key9 ==6&&$key8 ==1
		; Draw Component 4.まんこ  擴張  陰道
		drawindexed = 265110, 2652498, 0
        endif




;子宮脫 -------------------------------------------



		 if $key10 ==1&&$key8 ==1&&$key9 ==0
		; Draw Component 4.イラストっぽい子宮
		drawindexed = 63408, 2917608, 0
        endif


		 if $key10 ==1&&$key8 ==1&&$key9 ==1
		; Draw Component 4.イラストっぽい子宮
		drawindexed = 63408, 2917608, 0
        endif


		 if $key10 ==2&&$key8 ==1&&$key9 ==0
		; Draw Component 4.子宮脫
		drawindexed = 26880, 3357750, 0
        endif

		 if $key10 ==2&&$key8 ==1&&$key9 ==1
		; Draw Component 4.子宮脫
		drawindexed = 26880, 3357750, 0
        endif

		 if $key10 ==2&&$key8 ==1&&$key9 ==2
		; Draw Component 4.子宮脫
		drawindexed = 26880, 3357750, 0
        endif

		 if $key10 ==2&&$key8 ==1&&$key9 ==5
		; Draw Component 4.子宮脫
		drawindexed = 26880, 3357750, 0
        endif

; くり-------------------------------------------

		 if $key11 ==0&&$key8 ==1
		; Draw Component 4.くり
		drawindexed = 66912, 470178, 0
        endif

		 if $key11 ==1&&$key8 ==1
		; Draw Component 4.くり 01
		drawindexed = 67296, 537090, 0
        endif

		 if $key11 ==2&&$key8 ==1
		; Draw Component 4.くり 02
		drawindexed = 67680, 604386, 0
        endif

; カテーテル-------------------------------------------



		 if $key12 ==1&&$key8 ==0
		; Draw Component 4.カテーテル
		drawindexed = 12552, 2981016, 0
        endif



		 if $key12 ==1&&$key8 ==1&&$key9 ==0
		; Draw Component 4.カテーテル (擴張)
		drawindexed = 12306, 3005874, 0
        endif



		 if $key12 ==1&&$key8 ==1&&$key9 ==2
		; Draw Component 4.カテーテル (擴張)
		drawindexed = 12306, 3005874, 0
        endif



		 if $key12 ==1&&$key8 ==1&&$key9 ==3
		; Draw Component 4.カテーテル (擴張)
		drawindexed = 12306, 3005874, 0
        endif




		 if $key12 ==1&&$key8 ==1&&$key9 ==1
		; Draw Component 4.カテーテル (尿道擴張)
		drawindexed = 12306, 2993568, 0
        endif

		 if $key12 ==1&&$key8 ==1&&$key9 ==4
		; Draw Component 4.カテーテル (尿道擴張)
		drawindexed = 12306, 2993568, 0
        endif

		 if $key12 ==1&&$key8 ==1&&$key9 ==5
		; Draw Component 4.カテーテル (尿道擴張)
		drawindexed = 12306, 2993568, 0
        endif

		 if $key12 ==1&&$key8 ==1&&$key9 ==6
		; Draw Component 4.カテーテル (尿道擴張)
		drawindexed = 12306, 2993568, 0
        endif

; 緊身衣-------------------------------------------


		 if $key13 ==0&&$key8 ==0
		; Draw Component 4.裝甲  (緊身衣)
		drawindexed = 14193, 3697089, 0
        endif



		 if $key13 ==0&&$key8 ==1&&$key9 ==0
		; Draw Component 4.裝甲  (緊身衣) (擴張)
		drawindexed = 11889, 3711282, 0
        endif

		 if $key13 ==0&&$key8 ==1&&$key9 ==1
		; Draw Component 4.裝甲  (緊身衣) (擴張)
		drawindexed = 11889, 3711282, 0
        endif
		 if $key13 ==0&&$key8 ==1&&$key9 ==2
		; Draw Component 4.裝甲  (緊身衣) (擴張)
		drawindexed = 11889, 3711282, 0
        endif
		 if $key13 ==0&&$key8 ==1&&$key9 ==5
		; Draw Component 4.裝甲  (緊身衣) (擴張)
		drawindexed = 11889, 3711282, 0
        endif



		 if $key13 ==0&&$key8 ==1&&$key9 ==3
		; Draw Component 4.裝甲  (緊身衣) (擴張)(腹部凸起)
		drawindexed = 11889, 3723171, 0
        endif

		 if $key13 ==0&&$key8 ==1&&$key9 ==4
		; Draw Component 4.裝甲  (緊身衣) (擴張)(腹部凸起)
		drawindexed = 11889, 3723171, 0
        endif

		 if $key13 ==0&&$key8 ==1&&$key9 ==6
		; Draw Component 4.裝甲  (緊身衣) (擴張)(腹部凸起)
		drawindexed = 11889, 3723171, 0
        endif



; 裝甲  (背部)-------------------------------------------


		 if $key14 ==0
		; Draw Component 4.裝甲  (背部)
		drawindexed = 43944, 3735060, 0
        endif


; 裝甲  (腰飾)-------------------------------------------




		 if $key15 ==0
		; Draw Component 4.裝甲  (腰飾)
		drawindexed = 14886, 3800604, 0
        endif



		 if $key15 ==1
		; Draw Component 4.腰帶
		drawindexed = 30249, 3528798, 0
        endif



		 if $key15 ==2
		; Draw Component 4.腰帶
		drawindexed = 30249, 3528798, 0
        endif


		 if $key15 ==2
		; Draw Component 4.腰帶  (儲存瓶)
		drawindexed = 11400, 3559047, 0
        endif


		 if $key15 ==3
		; Draw Component 4.腰帶
		drawindexed = 30249, 3528798, 0
        endif


		 if $key15 ==3
		; Draw Component 4.腰帶  (儲存瓶)
		drawindexed = 11400, 3559047, 0
        endif


		 if $key15 ==3
		; Draw Component 4.腰帶  (儲存瓶)  管線
		drawindexed = 8226, 3570447, 0
        endif

; 手-------------------------------------------


		; Draw Component 4.手  (頂部)
		drawindexed = 13692, 3384630, 0


		 if $key16 ==0
		; Draw Component 4.手 (戰術護手)
		drawindexed = 106212, 3398322, 0
        endif

		 if $key16 ==1
		; Draw Component 4.手 (素手)
		drawindexed = 18576, 3504534, 0
        endif



; 腳-------------------------------------------



		 if $key17 ==0
		; Draw Component 4.腳  (戰術鞋)
		drawindexed = 60276, 3600015, 0
        endif


		 if $key17 ==0
		; Draw Component 4.腳  (絲襪)
		drawindexed = 7308, 3660291, 0
        endif

		 if $key17 ==1
		; Draw Component 4.腳  (裸腿)
		drawindexed = 7308, 3667599, 0
        endif

		 if $key17 ==1
		; Draw Component 4.腳  (戰術鞋)
		drawindexed = 60276, 3600015, 0
        endif



		 if $key17 ==2
		; Draw Component 4.腳  (原裝鞋子)
		drawindexed = 21342, 3578673, 0
        endif



; -------------------------------------------



		; Draw Component 4.頸環
		drawindexed = 5982, 3848616, 0
		run = CommandListCleanupSharedResources
	endif
endif

[TextureOverrideComponent5]
hash = 7748c1d8
match_first_index = 168981
match_index_count = 1896
if $mod_enabled
	local $state_id_5
	if $state_id_5 != $state_id
		$state_id_5 = $state_id
		$\WWMIv1\vg_offset = 209
		$\WWMIv1\vg_count = 1
		run = CommandListMergeSkeleton
	endif
	if ResourceMergedSkeleton !== null
		handling = skip
		run = CommandListTriggerResourceOverrides
		run = CommandListOverrideSharedResources
		; Draw Component 5
		drawindexed = 0, 3854598, 0
		; Draw Component 5.眼睛  一般
		drawindexed = 1896, 3854598, 0
		run = CommandListCleanupSharedResources
	endif
endif

[TextureOverrideComponent6]
hash = 7748c1d8
match_first_index = 170877
match_index_count = 84
if $mod_enabled
	local $state_id_6
	if $state_id_6 != $state_id
		$state_id_6 = $state_id
		$\WWMIv1\vg_offset = 210
		$\WWMIv1\vg_count = 3
		run = CommandListMergeSkeleton
	endif
	if ResourceMergedSkeleton !== null
		handling = skip
		run = CommandListTriggerResourceOverrides
		run = CommandListOverrideSharedResources
		; Draw Component 6
		drawindexed = 84, 3856494, 0
		run = CommandListCleanupSharedResources
	endif
endif

; Shading: Textures -------------------------

[ResourceTexture0]
filename = Textures/Components-0-1 t=6ce51d7a.dds

[TextureOverrideTexture0]
hash = 6ce51d7a
match_priority = 0
this = ResourceTexture0

[ResourceTexture1]
filename = Textures/Components-0-1-2 t=fc743d45.dds

[TextureOverrideTexture1]
hash = fc743d45
match_priority = 0
this = ResourceTexture1

[ResourceTexture2]
filename = Textures/Components-0-1-2-3-4 t=ab012b35.dds

[TextureOverrideTexture2]
hash = ab012b35
match_priority = 0
this = ResourceTexture2

[ResourceTexture3]
filename = Textures/Components-0-1-2-3-4-6 t=9f6eaf2e.dds

[TextureOverrideTexture3]
hash = 9f6eaf2e
match_priority = 0
this = ResourceTexture3

[ResourceTexture4]
filename = Textures/Components-0-1-2-3-4-6 t=c235c6a7.dds

[TextureOverrideTexture4]
hash = c235c6a7
match_priority = 0
this = ResourceTexture4

[ResourceTexture5]
filename = Textures/Components-0-2-5 t=8383cbbf.dds

[TextureOverrideTexture5]
hash = 8383cbbf
match_priority = 0
this = ResourceTexture5

[ResourceTexture6]
filename = Textures/Components-0-2-5 t=e04dea55.dds

[TextureOverrideTexture6]
hash = e04dea55
match_priority = 0
this = ResourceTexture6

[ResourceTexture7]
filename = Textures/Components-2 t=faf8f2ae.dds

[TextureOverrideTexture7]
hash = faf8f2ae
match_priority = 0
this = ResourceTexture7

[ResourceTexture8]
filename = Textures/Components-3 t=212d1d6a.dds

[TextureOverrideTexture8]
hash = 212d1d6a
match_priority = 0
this = ResourceTexture8

[ResourceTexture9]
filename = Textures/Components-0-1-2-4 t=837c1b30.dds

[TextureOverrideTexture9]
hash = 837c1b30
match_priority = 0
this = ResourceTexture9

[ResourceTexture10]
filename = Textures/Components-3 t=830aecff.dds

[TextureOverrideTexture10]
hash = 830aecff
match_priority = 0
this = ResourceTexture10

[ResourceTexture11]
filename = Textures/Components-3 t=d8fd5c40.dds

[TextureOverrideTexture11]
hash = d8fd5c40
match_priority = 0
this = ResourceTexture11

[ResourceTexture12]
filename = Textures/Components-3-4 t=5019e88f.dds

[TextureOverrideTexture12]
hash = 5019e88f
match_priority = 0
this = ResourceTexture12

[ResourceTexture13]
filename = Textures/Components-4 t=0f14fc34.dds

[TextureOverrideTexture13]
hash = 0f14fc34
match_priority = 0
this = ResourceTexture13

[ResourceTexture14]
filename = Textures/Components-4 t=29fedfbc.dds

[TextureOverrideTexture14]
hash = 29fedfbc
match_priority = 0
this = ResourceTexture14

[ResourceTexture15]
filename = Textures/Components-4 t=3a299182.dds

[TextureOverrideTexture15]
hash = 3a299182
match_priority = 0
this = ResourceTexture15

[ResourceTexture16]
filename = Textures/Components-4 t=5f4e6f09.dds

[TextureOverrideTexture16]
hash = 5f4e6f09
match_priority = 0
this = ResourceTexture16

[ResourceTexture17]
filename = Textures/Components-5 t=edfe74f8.dds

[TextureOverrideTexture17]
hash = edfe74f8
match_priority = 0
this = ResourceTexture17

; Skinning: Shape Keys Override -------------------------



[TextureOverrideTextureFix1]
hash = 10a2a706
match_priority = 0
this = ResourceTexture15



[TextureOverrideTextureFix2]
hash = 65ee0c91
match_priority = 0
this = ResourceTexture10



[TextureOverrideTextureFix3]
hash = 2231a66a
match_priority = 0
this = ResourceTexture7

[TextureOverrideShapeKeyOffsets]
hash = a4744427
match_priority = 0
override_byte_stride = 24
override_vertex_count = $mesh_vertex_count

[TextureOverrideShapeKeyScale]
hash = cf37d417
match_priority = 0
override_byte_stride = 4
override_vertex_count = $mesh_vertex_count

[CommandListSetupShapeKeys]
$\WWMIv1\shapekey_checksum = 2063
cs-t33 = ResourceShapeKeyOffsetBuffer
cs-u5 = ResourceCustomShapeKeyValuesRW
cs-u6 = ResourceShapeKeyCBRW
run = CustomShader\WWMIv1\ShapeKeyOverrider

[CommandListLoadShapeKeys]
$\WWMIv1\shapekey_vertex_count = $shapekey_vertex_count
cs-t0 = ResourceShapeKeyVertexIdBuffer
cs-t1 = ResourceShapeKeyVertexOffsetBuffer
cs-u6 = ResourceShapeKeyCBRW
run = CustomShader\WWMIv1\ShapeKeyLoader

[TextureOverrideShapeKeyLoaderCallback]
hash = a4744427
match_priority = 0
if $mod_enabled
	if cs == 3381.3333 && ResourceMergedSkeleton !== null
		handling = skip
		run = CommandListSetupShapeKeys
		run = CommandListLoadShapeKeys
	endif
endif

[CommandListMultiplyShapeKeys]
$\WWMIv1\custom_vertex_count = $mesh_vertex_count
run = CustomShader\WWMIv1\ShapeKeyMultiplier

[TextureOverrideShapeKeyMultiplierCallback]
hash = a4744427
match_priority = 0
if $mod_enabled
	if cs == 3381.4444 && ResourceMergedSkeleton !== null
		handling = skip
		run = CommandListMultiplyShapeKeys
	endif
endif

; Resources: Shape Keys Override -------------------------

[ResourceShapeKeyCBRW]
type = RWBuffer
format = R32G32B32A32_UINT
array = 66

[ResourceCustomShapeKeyValuesRW]
type = RWBuffer
format = R32G32B32A32_FLOAT
array = 32

; Resources: Skeleton Override -------------------------

[ResourceMergedSkeleton]

[ResourceMergedSkeletonRW]
type = RWBuffer
format = R32G32B32A32_FLOAT
array = 768

[ResourceExtraMergedSkeleton]

[ResourceExtraMergedSkeletonRW]
type = RWBuffer
format = R32G32B32A32_FLOAT
array = 768

; Resources: Buffers -------------------------

[ResourceBypassVB0]

[ResourceIndexBuffer]
type = Buffer
format = DXGI_FORMAT_R32_UINT
stride = 12
filename = Meshes/Index.buf

[ResourcePositionBuffer]
type = Buffer
format = DXGI_FORMAT_R32G32B32_FLOAT
stride = 12
filename = Meshes/Position.buf

[ResourceBlendBuffer]
type = Buffer
format = DXGI_FORMAT_R8_UINT
stride = 8
filename = Meshes/Blend.buf

[ResourceVectorBuffer]
type = Buffer
format = DXGI_FORMAT_R8G8B8A8_SNORM
stride = 8
filename = Meshes/Vector.buf

[ResourceColorBuffer]
type = Buffer
format = DXGI_FORMAT_R8G8B8A8_UNORM
stride = 4
filename = Meshes/Color.buf

[ResourceTexCoordBuffer]
type = Buffer
format = DXGI_FORMAT_R16G16_FLOAT
stride = 16
filename = Meshes/TexCoord.buf

[ResourceShapeKeyOffsetBuffer]
type = Buffer
format = DXGI_FORMAT_R32G32B32A32_UINT
stride = 16
filename = Meshes/ShapeKeyOffset.buf

[ResourceShapeKeyVertexIdBuffer]
type = Buffer
format = DXGI_FORMAT_R32_UINT
stride = 4
filename = Meshes/ShapeKeyVertexId.buf

[ResourceShapeKeyVertexOffsetBuffer]
type = Buffer
format = DXGI_FORMAT_R16_FLOAT
stride = 2
filename = Meshes/ShapeKeyVertexOffset.buf

; Autogenerated -------------------------

; This mod.ini was automatically generated by WWMI Tools Blender addon v0.9.0 and requires WWMI v0.7.0+ to function
; WWMI GameBanana: https://gamebanana.com/tools/17252
; WWMI Tools GameBanana: https://gamebanana.com/tools/17289
; WWMI GitHub: https://github.com/SpectrumQT/WWMI
; WWMI Tools GitHub: https://github.com/SpectrumQT/WWMI_Tools
; AGMG Modding Community Discord: https://discord.com/invite/agmg

; SHA256 CHECKSUM: 38bac2545749640675eb52b4c8e2bbe585a84bf9f53d745d381010e0b0587bbc
