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

[Constants]
global persist $hair = 0

global $active
global $creditinfo = 0

[KeyHair]
condition = $active == 1
key = up
type = cycle
$hair = 0,1

[Present]
post $active = 0

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

[TextureOverrideArcherHairBlend]
hash = 3fd32ad3
handling = skip
if $hair == 0
vb2 = ResourceArcherHairBlend
if DRAW_TYPE == 1
	vb0 = ResourceArcherHairPosition
	draw = 5463,0
elif DRAW_TYPE == 8
	Resource\SRMI\PositionBuffer = ref ResourceArcherHairPositionCS
	Resource\SRMI\BlendBuffer = ref ResourceArcherHairBlendCS
	$\SRMI\vertex_count = 5463
endif
elif $hair == 1
vb2 = Resourceff33a4f6Blend
if DRAW_TYPE == 1
	vb0 = Resourceff33a4f6Position
	draw = 3996,0
elif DRAW_TYPE == 8
	Resource\SRMI\PositionBuffer = ref Resourceff33a4f6PositionCS
	Resource\SRMI\BlendBuffer = ref Resourceff33a4f6BlendCS
	$\SRMI\vertex_count = 3996
endif
endif
$active = 1

[TextureOverrideArcherHairTexcoord]
hash = efea5ea6
if $hair == 0
  vb1 = ResourceArcherHairTexcoord
elif $hair == 1
  vb1 = Resourceff33a4f6Texcoord
endif

[TextureOverrideArcherHairDraw]
hash = 2e6a7e20
override_vertex_count = 5463
override_byte_stride = 40
uav_byte_stride = 4

[TextureOverrideArcherHeadBlend]
hash = d543ca67
handling = skip
if $hair == 0
vb2 = ResourceArcherHeadBlend
if DRAW_TYPE == 1
	vb0 = ResourceArcherHeadPosition
	draw = 3249,0
elif DRAW_TYPE == 8
	Resource\SRMI\PositionBuffer = ref ResourceArcherHeadPositionCS
	Resource\SRMI\BlendBuffer = ref ResourceArcherHeadBlendCS
	$\SRMI\vertex_count = 3249
endif
elif $hair == 1
vb2 = Resource70a1f422Blend
if DRAW_TYPE == 1
	vb0 = Resource70a1f422Position
	draw = 2796,0
elif DRAW_TYPE == 8
	Resource\SRMI\PositionBuffer = ref Resource70a1f422PositionCS
	Resource\SRMI\BlendBuffer = ref Resource70a1f422BlendCS
	$\SRMI\vertex_count = 2796
endif
endif

[TextureOverrideArcherHeadTexcoord]
hash = 439d8f45
if $hair == 0
  vb1 = ResourceArcherHeadTexcoord
elif $hair == 1
  vb1 = Resource70a1f422Texcoord
endif

[TextureOverrideArcherHeadDraw]
hash = 7bc40221
override_vertex_count = 3249
override_byte_stride = 40
uav_byte_stride = 4

;MARK:TextureOverrideVertexLimitRaise----------------------------------------------------------
[TextureOverride_16bd3b44_body_Draw]
hash = 86f86c93
override_byte_stride = 40
override_vertex_count = 40430
uav_byte_stride = 4

;MARK:TextureOverrideVB----------------------------------------------------------
; 16bd3b44 ----------------------------

[TextureOverride_VB_16bd3b44_body_Texcoord]
hash = fdd2c686
vb1 = Resource16bd3b44Texcoord

[TextureOverride_VB_16bd3b44_body_Blend]
hash = e090cbf1
handling = skip
vb2 = Resource16bd3b44Blend
if DRAW_TYPE == 1
  vb0 = Resource16bd3b44Position
draw = 40430, 0
endif
if DRAW_TYPE == 8
  Resource\SRMI\PositionBuffer = ref Resource16bd3b44PositionCS
  Resource\SRMI\BlendBuffer = ref Resource16bd3b44BlendCS
  $\SRMI\vertex_count = 40430
endif

[TextureOverrideArcherHairIB]
hash = ff33a4f6
handling = skip

[TextureOverrideArcherHairA]
hash = ff33a4f6
match_first_index = 0
if $hair == 0
ib = ResourceArcherHairAIB
; ArcherHairA-vb0=29d954e1.txt.006 (5463)
drawindexed = 21483, 0, 0
elif $hair == 1
ib = Resource_ff33a4f6_Component1
; [mesh:ff33a4f6-1] [vertex_count:3996]
drawindexed = 13716,0,0
endif

[TextureOverrideArcherHeadIB]
hash = 2c8d3ad6
handling = skip

[TextureOverrideArcherHeadA]
hash = 2c8d3ad6
match_first_index = 0
if $hair == 0
ib = ResourceArcherHeadAIB
; ArcherHeadA-vb0=73b50159.txt.013 (3203)
drawindexed = 13950, 0, 0
elif $hair == 1
ib = Resource_70a1f422_Component1
ps-t4 = Resource_70a1f422_1_e9ac3537_Slot_LightMap
; [mesh:70a1f422-1] [vertex_count:2694]
drawindexed = 11244,0,0
endif

[TextureOverrideArcherHeadB]
hash = 2c8d3ad6
match_first_index = 12708
if $hair == 0
ib = ResourceArcherHeadBIB
; ArcherHeadB-vb0=73b50159.txt.002 (52)
drawindexed = 144, 0, 0
elif $hair == 1
ib = Resource_70a1f422_Component2
; [mesh:70a1f422-1.001] [vertex_count:102]
drawindexed = 144,0,0
endif

;MARK:TextureOverrideIB----------------------------------------------------------
[TextureOverride_IB_16bd3b44_body_Component1]
hash = 16bd3b44
match_first_index = 0
handling = skip
ib = Resource_16bd3b44_Component1
; [mesh:body] [vertex_count:39630]
drawindexed = 215352,0,0

[TextureOverride_IB_16bd3b44_body_Component2]
hash = 16bd3b44
match_first_index = 51537
handling = skip
ib = Resource_16bd3b44_Component2
; [mesh:头饰] [vertex_count:800]
drawindexed = 3237,0,0

[TextureOverrideArcherHairADiffuse]
hash = 33f5ad9e
if $hair == 0
  this = ResourceArcherHairADiffuse
elif $hair == 1
  this = Resource_Texture_33f5ad9e
endif

[TextureOverrideArcherHairALightMap]
hash = 216cef66
if $hair == 0
  this = ResourceArcherHairALightMap
elif $hair == 1
  this = Resource_Texture_216cef66
endif

[TextureOverrideArcherHeadADiffuse]
hash = 783123d8
if $hair == 0
  this = ResourceArcherHeadADiffuse
elif $hair == 1
  this = Resource_Texture_783123d8
endif

;Salt ResourceBuffer-------------------------------------------------------------
[ResourceArcherHairPosition]
type = Buffer
stride = 40
filename = Buffer-Salt/ArcherHairPosition.buf

[ResourceArcherHairBlend]
type = Buffer
stride = 32
filename = Buffer-Salt/ArcherHairBlend.buf

[ResourceArcherHairTexcoord]
type = Buffer
stride = 8
filename = Buffer-Salt/ArcherHairTexcoord.buf

[ResourceArcherHairPositionCS]
type = StructuredBuffer
stride = 40
filename = Buffer-Salt/ArcherHairPosition.buf

[ResourceArcherHairBlendCS]
type = StructuredBuffer
stride = 32
filename = Buffer-Salt/ArcherHairBlend.buf

[ResourceArcherHairAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = Buffer-Salt/ArcherHairA.ib

[ResourceArcherHeadPosition]
type = Buffer
stride = 40
filename = Buffer-Salt/ArcherHeadPosition.buf

[ResourceArcherHeadBlend]
type = Buffer
stride = 32
filename = Buffer-Salt/ArcherHeadBlend.buf

[ResourceArcherHeadTexcoord]
type = Buffer
stride = 8
filename = Buffer-Salt/ArcherHeadTexcoord.buf

[ResourceArcherHeadPositionCS]
type = StructuredBuffer
stride = 40
filename = Buffer-Salt/ArcherHeadPosition.buf

[ResourceArcherHeadBlendCS]
type = StructuredBuffer
stride = 32
filename = Buffer-Salt/ArcherHeadBlend.buf

[ResourceArcherHeadAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = Buffer-Salt/ArcherHeadA.ib

[ResourceArcherHeadBIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = Buffer-Salt/ArcherHeadB.ib

[ResourceArcherHairADiffuse]
filename = Texture-Salt/ArcherHairADiffuse.dds

[ResourceArcherHairALightMap]
filename = Texture-Salt/ArcherHairALightMap.dds

[ResourceArcherHeadADiffuse]
filename = Texture-Salt/ArcherHeadADiffuse.dds

;MARK:ResourceBuffer----------------------------------------------------------
[Resource16bd3b44Position]
type = Buffer
stride = 40
filename = Buffer/16bd3b44-Position.buf

[Resource16bd3b44Texcoord]
type = Buffer
stride = 20
filename = Buffer/16bd3b44-Texcoord.buf

[Resource16bd3b44Blend]
type = Buffer
stride = 32
filename = Buffer/16bd3b44-Blend.buf

[Resource16bd3b44PositionCS]
type = StructuredBuffer
stride = 40
filename = Buffer/16bd3b44-Position.buf

[Resource16bd3b44BlendCS]
type = StructuredBuffer
stride = 32
filename = Buffer/16bd3b44-Blend.buf

[Resource_16bd3b44_Component1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = Buffer/16bd3b44-Component1.buf

[Resource_16bd3b44_Component2]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = Buffer/16bd3b44-Component2.buf


;MARK:ResourceBuffer----------------------------------------------------------
[Resource70a1f422Position]
type = Buffer
stride = 40
filename = Buffer/70a1f422-Position.buf

[Resource70a1f422Blend]
type = Buffer
stride = 32
filename = Buffer/70a1f422-Blend.buf

[Resource70a1f422Texcoord]
type = Buffer
stride = 8
filename = Buffer/70a1f422-Texcoord.buf

[Resource70a1f422PositionCS]
type = StructuredBuffer
stride = 40
filename = Buffer/70a1f422-Position.buf

[Resource70a1f422BlendCS]
type = StructuredBuffer
stride = 32
filename = Buffer/70a1f422-Blend.buf

[Resource_70a1f422_Component1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = Buffer/70a1f422-Component1.buf

[Resource_70a1f422_Component2]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = Buffer/70a1f422-Component2.buf


;MARK:ResourceBuffer----------------------------------------------------------
[Resourceff33a4f6Position]
type = Buffer
stride = 40
filename = Buffer/ff33a4f6-Position.buf

[Resourceff33a4f6Blend]
type = Buffer
stride = 32
filename = Buffer/ff33a4f6-Blend.buf

[Resourceff33a4f6Texcoord]
type = Buffer
stride = 8
filename = Buffer/ff33a4f6-Texcoord.buf

[Resourceff33a4f6PositionCS]
type = StructuredBuffer
stride = 40
filename = Buffer/ff33a4f6-Position.buf

[Resourceff33a4f6BlendCS]
type = StructuredBuffer
stride = 32
filename = Buffer/ff33a4f6-Blend.buf

[Resource_ff33a4f6_Component1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = Buffer/ff33a4f6-Component1.buf


;MARK:ResourceTexture----------------------------------------------------------
[Resource_70a1f422_1_e9ac3537_Slot_LightMap]
filename = Texture/70a1f422_1_e9ac3537_Slot_LightMap.dds


;MARK:ResourceAndTextureOverride_Texture----------------------------------------------------------
[Resource_Texture_563a2a48]
filename = Texture/16bd3b44_1_563a2a48_Hash_DiffuseMap.dds

[TextureOverride_563a2a48]
; 16bd3b44_1_563a2a48_Hash_DiffuseMap.dds
hash = 563a2a48
match_priority = 0
this = Resource_Texture_563a2a48


;MARK:ResourceAndTextureOverride_Texture----------------------------------------------------------
[Resource_Texture_4dfc44f1]
filename = Texture/16bd3b44_1_4dfc44f1_Hash_LightMap.dds

[TextureOverride_4dfc44f1]
; 16bd3b44_1_4dfc44f1_Hash_LightMap.dds
hash = 4dfc44f1
match_priority = 0
this = Resource_Texture_4dfc44f1


;MARK:ResourceAndTextureOverride_Texture----------------------------------------------------------
[Resource_Texture_783123d8]
filename = Texture/70a1f422_1_783123d8_Hash_DiffuseMap.dds

;MARK:ResourceAndTextureOverride_Texture----------------------------------------------------------
[Resource_Texture_33f5ad9e]
filename = Texture/ff33a4f6_1_33f5ad9e_Hash_DiffuseMap.dds

;MARK:ResourceAndTextureOverride_Texture----------------------------------------------------------
[Resource_Texture_216cef66]
filename = Texture/ff33a4f6_1_216cef66_Hash_LightMap.dds

