; 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,6,7,8,9,10,11

[Present]
post $active = 0
run = CommandListCreditInfo

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

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

[TextureOverridebodyTexcoord]
hash = b3c0a13c
vb1 = ResourcebodyTexcoord

[TextureOverridebodyVertexLimitRaise]
hash = 5fdaccd2
override_vertex_count = 40876
override_byte_stride = 92

[TextureOverridebodyIB]
hash = 7f32eeae
handling = skip

[TextureOverridebodyA]
hash = 7f32eeae
match_first_index = 0
run = CommandListSkinTexture
ib = ResourcebodyAIB
ps-t4 = ResourcebodyANormalMap

if $body == 0
	drawindexed = 2064, 27972, 0
	drawindexed = 1590, 30036, 0
	drawindexed = 86118, 31626, 0
	drawindexed = 3324, 198624, 0
elif $body == 1
	drawindexed = 2064, 27972, 0
	drawindexed = 1590, 30036, 0
	drawindexed = 86118, 31626, 0
elif $body == 2
	drawindexed = 1008, 26964, 0
	drawindexed = 1590, 30036, 0
	drawindexed = 86118, 31626, 0
	drawindexed = 3324, 198624, 0
elif $body == 3
	drawindexed = 1008, 26964, 0
	drawindexed = 1590, 30036, 0
	drawindexed = 86118, 31626, 0
elif $body == 4
	drawindexed = 2064, 27972, 0
	drawindexed = 1590, 30036, 0
	drawindexed = 80880, 117744, 0
elif $body == 5
	drawindexed = 1008, 26964, 0
	drawindexed = 1590, 30036, 0
	drawindexed = 80880, 117744, 0
elif $body == 6
	drawindexed = 2064, 27972, 0
	drawindexed = 86118, 31626, 0
	drawindexed = 3324, 198624, 0
elif $body == 7
	drawindexed = 2064, 27972, 0
	drawindexed = 86118, 31626, 0
elif $body == 8
	drawindexed = 1008, 26964, 0
	drawindexed = 86118, 31626, 0
	drawindexed = 3324, 198624, 0
elif $body == 9
	drawindexed = 1008, 26964, 0
	drawindexed = 86118, 31626, 0
elif $body == 10
	drawindexed = 2064, 27972, 0
	drawindexed = 80880, 117744, 0
elif $body == 11
	drawindexed = 1008, 26964, 0
	drawindexed = 80880, 117744, 0
endif

drawindexed = 26964, 0, 0

[TextureOverridebodyADiffuse]
hash = 6631eadc
this = ResourcebodyADiffuse

[TextureOverrideTrigger.BodyA.Diffuse.1024]
hash = 8cffa733
this = ResourcebodyADiffuse

[TextureOverridebodyAMaterialMap]
hash = 05250215
this = ResourcebodyAMaterialMap

[TextureOverrideTrigger.BodyA.LightMap.1024]
hash = 2c72b961
this = ResourcebodyAMaterialMap

[TextureOverridebodyALightMap]
hash = 985c5f52
this = ResourcebodyALightMap

[TextureOverrideTrigger.BodyA.MaterialMap.1024]
hash = cd507047
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 = 20
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