; RemielleBlack

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

[Constants]
global persist $bra = 0
global persist $legs = 0
global persist $wings = 0
global $active

[KeySwap1]
condition = $active == 1
key = 1
type = cycle
$bra = 0,1

[KeySwap2]
condition = $active == 1
key = 2
type = cycle
$legs = 0,1,2,3

[KeySwap3]
condition = $active == 1
key = 3
type = cycle
$wings = 0,1

[Present]
post $active = 0

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

[TextureOverrideRemielleBlackBodyBlend]
hash = 7f6fe876
handling = skip
if DRAW_TYPE == 2 || DRAW_TYPE == 4
	vb1 = ResourceRemielleBlackBodyTexcoord
	vb2 = ResourceRemielleBlackBodyBlend
	checktextureoverride = ib
elif DRAW_TYPE == 1
	vb0 = ResourceRemielleBlackBodyPosition
	vb2 = ResourceRemielleBlackBodyBlend
	Draw = 20206, 0
endif
$active = 1

[TextureOverrideRemielleBlackBodyTexcoord]
hash = 5dcc6ee1
vb1 = ResourceRemielleBlackBodyTexcoord

[TextureOverrideRemielleBlackBodyVertexLimitRaise]
hash = 22ec622c
override_vertex_count = 20206
override_byte_stride = 40

[TextureOverrideRemielleBlackLegsBlend]
hash = ff05e5f9
handling = skip
if DRAW_TYPE == 2 || DRAW_TYPE == 4
	vb1 = ResourceRemielleBlackLegsTexcoord
	vb2 = ResourceRemielleBlackLegsBlend
	checktextureoverride = ib
elif DRAW_TYPE == 1
	vb0 = ResourceRemielleBlackLegsPosition
	vb2 = ResourceRemielleBlackLegsBlend
	Draw = 20629, 0
endif

[TextureOverrideRemielleBlackLegsTexcoord]
hash = 7c0db158
vb1 = ResourceRemielleBlackLegsTexcoord

[TextureOverrideRemielleBlackLegsVertexLimitRaise]
hash = 96dc0a8e
override_vertex_count = 20629
override_byte_stride = 40

[TextureOverrideRemielleBlackBodyA]
hash = f57f3e40
match_first_index = 0
match_index_count = 64092
handling = skip
ib = ResourceRemielleBlackBodyAIB
; BodyA (17816)
drawindexed = 58674, 0, 0
if $legs == 0 || $legs == 1
	drawindexed = 1596, 58674, 0
endif
if $legs == 0
	drawindexed = 18, 60270, 0
	drawindexed = 864, 60288, 0
endif
if $legs != 3
	drawindexed = 2940, 61152, 0
endif

[TextureOverrideRemielleBlackBodyB]
hash = f57f3e40
match_first_index = 64092
match_index_count = 222
handling = skip
ib = ResourceRemielleBlackBodyBIB
drawindexed = 174, 0, 0
if $bra == 0
	drawindexed = 48, 174, 0
endif

[TextureOverrideRemielleBlackLegsA]
hash = 09a51ed3
match_first_index = 0
match_index_count = 15618
handling = skip
ib = ResourceRemielleBlackLegsAIB

; LegsA (148)
drawindexed = 522, 0, 0

if $legs == 0 || $legs == 1
	drawindexed = 7392, 522, 0
	drawindexed = 114, 7914, 0
endif
if $legs != 3
	drawindexed = 4344, 8028, 0
endif

Resource\ZZMI\Diffuse = ref ResourceRemielleBlackLegsADiffuse
Resource\ZZMI\NormalMap = ref ResourceRemielleBlackLegsANormalMap
Resource\ZZMI\LightMap = ref ResourceRemielleBlackLegsALightMap
Resource\ZZMI\MaterialMap = ref ResourceRemielleBlackLegsAMaterialMap
run = CommandList\ZZMI\SetTextures
; mod
if $legs == 0 || $legs == 1
	drawindexed = 21519, 12372, 0
elif $legs == 2
	drawindexed = 29394, 33891, 0
else
	drawindexed = 41430, 63285, 0
endif

[TextureOverrideRemielleBlackLegsB]
hash = 09a51ed3
match_first_index = 15618
match_index_count = 114
handling = skip
ib = ResourceRemielleBlackLegsBIB
if $legs == 0
	drawindexed = 36, 0, 0
	drawindexed = 78, 36, 0
endif

[TextureOverrideRemielleWings]
hash = 9004a39a
if $wings == 1
	ib = null
endif

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


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

[ResourceRemielleBlackBodyPosition]
type = Buffer
stride = 40
filename = RemielleBlackBodyPosition.buf

[ResourceRemielleBlackBodyBlend]
type = Buffer
stride = 32
filename = RemielleBlackBodyBlend.buf

[ResourceRemielleBlackBodyTexcoord]
type = Buffer
stride = 24
filename = RemielleBlackBodyTexcoord.buf

[ResourceRemielleBlackBodyAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = RemielleBlackBodyA.ib

[ResourceRemielleBlackBodyBIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = RemielleBlackBodyB.ib

[ResourceRemielleBlackLegsPosition]
type = Buffer
stride = 40
filename = RemielleBlackLegsPosition.buf

[ResourceRemielleBlackLegsBlend]
type = Buffer
stride = 32
filename = RemielleBlackLegsBlend.buf

[ResourceRemielleBlackLegsTexcoord]
type = Buffer
stride = 20
filename = RemielleBlackLegsTexcoord.buf

[ResourceRemielleBlackLegsAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = RemielleBlackLegsA.ib

[ResourceRemielleBlackLegsBIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = RemielleBlackLegsB.ib

[ResourceRemielleBlackLegsADiffuse]
filename = RemielleBlackLegsADiffuse.dds

[ResourceRemielleBlackLegsANormalMap]
filename = RemielleBlackLegsANormalMap.dds

[ResourceRemielleBlackLegsALightMap]
filename = RemielleBlackLegsALightMap.dds

[ResourceRemielleBlackLegsAMaterialMap]
filename = RemielleBlackLegsAMaterialMap.dds

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