; Yanagi

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

[Constants]
global $active
global persist $Socks = 1
global persist $Shoes = 1
global persist $Piernas = 0
global persist $Neck = 1
global persist $Dress = 1

[Present]
post $active = 0

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

[KeySwap2]
key = 7
condition = $active == 1
type = cycle
$Socks = 1,0
$Piernas = 0,1

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

[TextureOverrideYanagiHairBlend]
$active = 1
hash = 0bbe1d7d
handling = skip
vb2 = ResourceYanagiHairBlend
if DRAW_TYPE == 1
	vb0 = ResourceYanagiHairPosition
	draw = 6432, 0
endif

[TextureOverrideYanagiHairTexcoord]
hash = 42ca0c9b
vb1 = ResourceYanagiHairTexcoord

[TextureOverrideYanagiHairVertexLimitRaise]
hash = daba2b23
override_vertex_count = 6432
override_byte_stride = 40

[TextureOverrideYanagiRingBlend]
hash = 07a1d434
handling = skip
vb2 = ResourceYanagiRingBlend
if DRAW_TYPE == 1
	vb0 = ResourceYanagiRingPosition
	draw = 284, 0
endif

[TextureOverrideYanagiRingTexcoord]
hash = 49188dc8
vb1 = ResourceYanagiRingTexcoord

[TextureOverrideYanagiRingVertexLimitRaise]
hash = 01864eed
override_vertex_count = 284
override_byte_stride = 40

[TextureOverrideYanagiBodyBlend]
hash = b558d482
handling = skip
vb2 = ResourceYanagiBodyBlend
if DRAW_TYPE == 1
	vb0 = ResourceYanagiBodyPosition
	draw = 23573, 0
endif

[TextureOverrideYanagiBodyTexcoord]
hash = f4fbc5c0
vb1 = ResourceYanagiBodyTexcoord

[TextureOverrideYanagiBodyVertexLimitRaise]
hash = 2fe26340
override_vertex_count = 23573
override_byte_stride = 40

[TextureOverrideYanagiGlassesBlend]
hash = 6b5d6e39
handling = skip
vb2 = ResourceYanagiGlassesBlend
if DRAW_TYPE == 1
	vb0 = ResourceYanagiGlassesPosition
	draw = 136, 0
endif

[TextureOverrideYanagiGlassesTexcoord]
hash = dd32963a
vb1 = ResourceYanagiGlassesTexcoord

[TextureOverrideYanagiGlassesVertexLimitRaise]
hash = 178a1ff8
override_vertex_count = 136
override_byte_stride = 40

[TextureOverrideYanagiHairIB]
hash = 9e12899f
handling = skip

[TextureOverrideYanagiHairA]
hash = 9e12899f
match_first_index = 0
ib = ResourceYanagiHairAIB

Resource\ZZMI\Diffuse = ref ResourceYanagiBodyADiffuse
Resource\ZZMI\LightMap = ref ResourceYanagiBodyALightMap
Resource\ZZMI\MaterialMap = ref ResourceYanagiBodyAMaterialMap
Resource\ZZMI\NormalMap = ref ResourceYanagiBodyANormalMap
run = CommandList\ZZMI\SetTextures

drawindexed = 8214, 12648, 0

Resource\ZZMI\Diffuse = ref ResourceYanagiHairADiffuse
Resource\ZZMI\NormalMap = ref ResourceYanagiHairANormalMap
Resource\ZZMI\LightMap = ref ResourceYanagiHairALightMap
Resource\ZZMI\MaterialMap = ref ResourceYanagiHairAMaterialMap
run = CommandList\ZZMI\SetTextures

; YanagiHairA-vb0=0e52a354.txt (4276)
drawindexed = 12648, 0, 0


[TextureOverrideYanagiRingIB]
hash = 13c75775
handling = skip

[TextureOverrideYanagiRingA]
hash = 13c75775
match_first_index = 0
ib = ResourceYanagiRingAIB



run = CommandList\ZZMI\SetTextures

; YanagiRingA-vb0=fe235fbb.txt (284)
drawindexed = 840, 0, 0

[TextureOverrideYanagiBodyIB]
hash = f478ee4c
handling = skip

[TextureOverrideYanagiBodyA]
hash = f478ee4c
match_first_index = 0
ib = ResourceYanagiBodyAIB

Resource\ZZMI\Diffuse = ref ResourceYanagiBodyADiffuse
Resource\ZZMI\LightMap = ref ResourceYanagiBodyALightMap
Resource\ZZMI\MaterialMap = ref ResourceYanagiBodyAMaterialMap

Resource\ZZMI\NormalMap = ref ResourceYanagiBodyANormalMap

run = CommandList\ZZMI\SetTextures

drawindexed = 19635, 91911, 0

if $Dress == 1
drawindexed = 15960, 19380, 0
endif
if $Neck == 1
drawindexed = 966, 44310, 0
endif
if $Piernas == 1
drawindexed = 26658, 45276, 0
endif
if $Shoes == 1
drawindexed = 3738, 71934, 0
endif
if $Socks == 1
drawindexed = 16239, 75672, 0
endif

[TextureOverrideYanagiGlassesIB]
hash = 44d9123b
handling = skip

[TextureOverrideYanagiGlassesA]
hash = 44d9123b
match_first_index = 0
ib = ResourceYanagiGlassesAIB



run = CommandList\ZZMI\SetTextures

; YanagiGlassesA-vb0=8e3cf210.txt (136)
drawindexed = 372, 0, 0


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


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

[ResourceYanagiHairPosition]
type = Buffer
stride = 40
filename = YanagiHairPosition.buf

[ResourceYanagiHairBlend]
type = Buffer
stride = 32
filename = YanagiHairBlend.buf

[ResourceYanagiHairTexcoord]
type = Buffer
stride = 24
filename = YanagiHairTexcoord.buf

[ResourceYanagiHairAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = YanagiHairA.ib

[ResourceYanagiRingPosition]
type = Buffer
stride = 40
filename = YanagiRingPosition.buf

[ResourceYanagiRingBlend]
type = Buffer
stride = 8
filename = YanagiRingBlend.buf

[ResourceYanagiRingTexcoord]
type = Buffer
stride = 28
filename = YanagiRingTexcoord.buf

[ResourceYanagiRingAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = YanagiRingA.ib

[ResourceYanagiBodyPosition]
type = Buffer
stride = 40
filename = YanagiBodyPosition.buf

[ResourceYanagiBodyBlend]
type = Buffer
stride = 32
filename = YanagiBodyBlend.buf

[ResourceYanagiBodyTexcoord]
type = Buffer
stride = 20
filename = YanagiBodyTexcoord.buf

[ResourceYanagiBodyAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = YanagiBodyA.ib

[ResourceYanagiGlassesPosition]
type = Buffer
stride = 40
filename = YanagiGlassesPosition.buf

[ResourceYanagiGlassesBlend]
type = Buffer
stride = 8
filename = YanagiGlassesBlend.buf

[ResourceYanagiGlassesTexcoord]
type = Buffer
stride = 28
filename = YanagiGlassesTexcoord.buf

[ResourceYanagiGlassesAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = YanagiGlassesA.ib

[ResourceYanagiHairADiffuse]
filename = YanagiHairADiffuse.dds

[ResourceYanagiHairANormalMap]
filename = YanagiHairANormalMap.dds

[ResourceYanagiHairALightMap]
filename = YanagiHairALightMap.dds

[ResourceYanagiHairAMaterialMap]
filename = YanagiHairAMaterialMap.dds

[ResourceYanagiBodyADiffuse]
filename = YanagiBodyADiffuse.dds

[ResourceYanagiBodyALightMap]
filename = YanagiBodyALightMap.dds

[ResourceYanagiBodyAMaterialMap]
filename = YanagiBodyAMaterialMap.dds

[ResourceYanagiFaceADiffuse]
filename = YanagiFaceADiffuse.dds

[ResourceYanagiBodyANormalMap]
filename = YanagiBodyANormalMap.dds

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