[Constants]
global $active
global persist $DiffuseToggle = 0

[Present]
    post $active = 0

[KeyDiffuseToggle]
condition = $active == 1
key = ,
type = cycle
$DiffuseToggle = 0,1


;MARK:TextureOverrideVertexLimitRaise
[TextureOverride_8ac40392_8ac40392_VertexLimitRaise]
hash = 1d3db60d
override_byte_stride = 40
override_vertex_count = 19791
uav_byte_stride = 4


;MARK:TextureOverrideVB
; 8ac40392
[TextureOverride_VB_8ac40392_8ac40392_Position]
hash = 4f3ab614
vb2 = Resource8ac40392Blend
vb0 = Resource8ac40392Position
handling = skip
draw = 19791, 0

[TextureOverride_VB_8ac40392_8ac40392_Texcoord]
hash = 1b43f126
vb1 = Resource8ac40392Texcoord

[TextureOverride_VB_8ac40392_8ac40392_Blend]
hash = 4ba016b1


;MARK:TextureOverrideIB
[TextureOverride_IB_8ac40392]
hash = 8ac40392
handling = skip

[TextureOverride_LOD0.8ac40392_31773_0]
hash = 8ac40392
match_first_index = 0
ib = Resource_LOD0.8ac40392_31773_0_Index
Resource\ZZMI\Diffuse = ref Resource-8ac40392-31773-0-DiffuseMap
Resource\ZZMI\NormalMap = ref Resource-8ac40392-31773-0-NormalMap
Resource\ZZMI\LightMap = ref Resource-8ac40392-31773-0-LightMap
Resource\ZZMI\MaterialMap = ref Resource-8ac40392-31773-0-MaterialMap
run = CommandList\ZZMI\SetTextures
run = CommandListSkinTexture
; [mesh:LOD0.8ac40392-31773-0.武器_copy] [vertex_count:18778]
drawindexed = 75321,0,0


;MARK:ResourceBuffer
[Resource8ac40392Position]
type = Buffer
stride = 40
filename = Meshes/8ac40392-Position.buf

[Resource8ac40392Texcoord]
type = Buffer
stride = 20
filename = Meshes/8ac40392-Texcoord.buf

[Resource8ac40392Blend]
type = Buffer
stride = 32
filename = Meshes/8ac40392-Blend.buf

[Resource_LOD0.8ac40392_31773_0_Index]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = Meshes/LOD0.8ac40392-31773-0-Index.buf

;MARK:ResourceTexture
[Resource-8ac40392-31773-0-DiffuseMap]
filename = Textures/8ac40392-31773-0-DiffuseMap.dds

[Resource-8ac40392-31773-0-NormalMap]
filename = Textures/8ac40392-31773-0-NormalMap.dds

[Resource-8ac40392-31773-0-LightMap]
filename = Textures/8ac40392-31773-0-LightMap.dds

[Resource-8ac40392-31773-0-MaterialMap]
filename = Textures/8ac40392-31773-0-MaterialMap.dds

;sha256=4b015ea126c2a7aefef0b4a4e14e2e61b62d90e7ecdb3776770e6f1ddcbcbea4

[TextureOverridewuqi2weaponBA]
hash = 9fbf4911
match_first_index = 0
match_index_count = 11472
    run = CommandListSkinTexture
    handling = skip
    $active = 1
    ib = Resourcewuqi2weaponBAIB
    
    if $DiffuseToggle == 0
        Resource\ZZMI\Diffuse = ref ResourceDiffuse
    else if $DiffuseToggle == 1
        Resource\ZZMI\Diffuse = ref ResourceDiffuse1
    endif
    
    Resource\ZZMI\MaterialMap = ref ResourceMaterialMap
    Resource\ZZMI\LightMap = ref ResourceLightMap
    Resource\ZZMI\NormalMap = ref ResourceNormalMap
    run = CommandList\ZZMI\SetTextures
    ps-t11 = ResourceSM
    ps-t13 = ResourceSM


[ResourceDiffuse]
filename = Diffuse.dds

[ResourceDiffuse1]
filename = Diffuse1.dds

[ResourceMaterialMap]
filename = MaterialMap.dds

[ResourceLightMap]
filename = LightMap.dds

[ResourceNormalMap]
filename = NormalMap.dds

[ResourceSM]
filename = SM.dds

