; body

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

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

[KeyBody]
condition = $active == 1
key = k
type = cycle
$body = 0,1,2,3,4,5

[Present]
post $active = 0
run = CommandListCreditInfo

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

[TextureOverridebodyBlend]
hash = d27d0e6b
handling = skip
vb2 = ResourcebodyBlend
if DRAW_TYPE == 1
	vb0 = ResourcebodyPosition
	draw = 59741,0
endif
$active = 1

[TextureOverridebodyTexcoord]
hash = f589a51f
vb1 = ResourcebodyTexcoord

[TextureOverridebodyVertexLimitRaise]
hash = 0c01e6a5
override_vertex_count = 59741
override_byte_stride = 96

[TextureOverridebodyIB]
hash = 26a487ff
handling = skip

[TextureOverridebodyA]
hash = 26a487ff
match_first_index = 0
run = CommandListSkinTexture
ib = ResourcebodyAIB
ps-t4 = ResourcebodyANormalMap

if $body == 0
	; 内裤 (1178)
	drawindexed = 4011, 0, 0
	; 抹胸 (1296)
	drawindexed = 3996, 25548, 0
	; 毛 (1175)
	drawindexed = 2433, 120927, 0
	; 衣服 (2299)
	drawindexed = 6264, 123360, 0
	; 尾巴 (350)
	drawindexed = 1728, 4011, 0
	; 身体 (16200)
	drawindexed = 91383, 129624, 0
elif $body == 1
	; 抹胸 (1296)
	drawindexed = 3996, 25548, 0
	; 毛 (1175)
	drawindexed = 2433, 120927, 0
	; 衣服 (2299)
	drawindexed = 6264, 123360, 0
	; 尾巴 (350)
	drawindexed = 1728, 4011, 0
	; 身体 (16200)
	drawindexed = 91383, 129624, 0
elif $body == 2
	; 内裤 (1178)
	drawindexed = 4011, 0, 0
	; 毛 (1175)
	drawindexed = 2433, 120927, 0
	; 衣服 (2299)
	drawindexed = 6264, 123360, 0
	; 尾巴 (350)
	drawindexed = 1728, 4011, 0
	; 身体裸 (16200)
	drawindexed = 91383, 221007, 0
elif $body == 3
	; 毛 (1175)
	drawindexed = 2433, 120927, 0
	; 衣服 (2299)
	drawindexed = 6264, 123360, 0
	; 尾巴 (350)
	drawindexed = 1728, 4011, 0
	; 身体裸 (16200)
	drawindexed = 91383, 221007, 0
elif $body == 4
	; 尾巴 (350)
	drawindexed = 1728, 4011, 0
	; 身体裸 (16200)
	drawindexed = 91383, 221007, 0
elif $body == 5
	; 身体裸 (16200)
	drawindexed = 91383, 221007, 0
endif

drawindexed = 19809, 5739, 0

[TextureOverridebodyADiffuse]
hash = 207b8e63
this = ResourcebodyADiffuse

[TextureOverrideNekomata.HairB.Diffuse.1024]
hash = 60687646
this = ResourcebodyADiffuse

[TextureOverridebodyAMaterialMap]
hash = fc53fc6f
this = ResourcebodyAMaterialMap

[TextureOverrideNekomata.HairB.LightMap.1024]
hash = 4f3f7df0
this = ResourcebodyAMaterialMap

[TextureOverridebodyALightMap]
hash = b3286755
this = ResourcebodyALightMap

[TextureOverrideNekomata.HairB.MaterialMap.1024]
hash = a5529690
this = ResourcebodyALightMap

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

[CommandListCreditInfo]
if $creditinfo == 0 && $active == 1
    pre Resource\ShaderFixes\help.ini\Notification = ResourceCreditInfo
    pre run = CustomShader\ShaderFixes\help.ini\FormatText
    pre $\ShaderFixes\help.ini\notification_timeout = time + 5.0
    $creditinfo = 1
endif

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

[ResourcebodyPosition]
type = Buffer
stride = 40
filename = bodyPosition.buf

[ResourcebodyBlend]
type = Buffer
stride = 32
filename = bodyBlend.buf

[ResourcebodyTexcoord]
type = Buffer
stride = 24
filename = bodyTexcoord.buf

[ResourcebodyAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = bodyA.ib

[ResourcebodyADiffuse]
filename = bodyADiffuse.dds

[ResourcebodyANormalMap]
filename = bodyANormalMap.dds

[ResourcebodyAMaterialMap]
filename = bodyAMaterialMap.dds

[ResourcebodyALightMap]
filename = bodyALightMap.dds

[ResourceCreditInfo]
type = Buffer
data = "Created by ming chen"

; .ini generated by XXMI (XX-Model-Importer)
; If you have any issues or find any bugs, please open a ticket at https://github.com/leotorrez/XXMI-Tools/issues