; NatlanNPC1

; Constants -------------------------
[Constants]
global $had_blend = 0
global $has_blend = 0

[Present]
if $had_blend == 1
    $has_blend = 1
else
    $has_blend = 0
endif
$had_blend = 0

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

[TextureOverrideNatlanNPC1Position]
if $has_blend == 1
hash = d4679d85
vb0 = ResourceNatlanNPC1Position
endif

[TextureOverrideNatlanNPC1Blend]
$had_blend = 1
hash = 220006f5
vb1 = ResourceNatlanNPC1Blend
handling = skip
draw = 54455,0 

[TextureOverrideNatlanNPC1Texcoord]
if $has_blend == 1
hash = 0c857ea0
vb1 = ResourceNatlanNPC1Texcoord
endif

[TextureOverrideNatlanNPC1VertexLimitRaise]
if $has_blend == 1
hash = 25e4bce5
endif

[TextureOverrideNatlanNPC1IB]
if $has_blend == 1
hash = 30445216
handling = skip
drawindexed = auto
endif

[TextureOverrideNatlanNPC1Head]
if $has_blend == 1
hash = 30445216
match_first_index = 0
ib = ResourceNatlanNPC1HeadIB
ps-t0 = ResourceNatlanNPC1HeadDiffuse
ps-t1 = ResourceNatlanNPC1HeadLightMap
run = CommandList\global\ORFix\NNFix
endif

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

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

[ResourceNatlanNPC1Position]
type = Buffer
stride = 40
filename = NatlanNPC1Position.buf

[ResourceNatlanNPC1Blend]
type = Buffer
stride = 32
filename = NatlanNPC1Blend.buf

[ResourceNatlanNPC1Texcoord]
type = Buffer
stride = 12
filename = NatlanNPC1Texcoord.buf

[ResourceNatlanNPC1HeadIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = NatlanNPC1Head.ib

[ResourceNatlanNPC1HeadDiffuse]
filename = NatlanNPC1HeadDiffuse.dds

[ResourceNatlanNPC1HeadLightMap]
filename = NatlanNPC1HeadLightMap.dds


; .ini generated by GIMI (Genshin-Impact-Model-Importer)
; If you have any issues or find any bugs, please open a ticket at https://github.com/SilentNightSound/GI-Model-Importer/issues or contact SilentNightSound#7430 on discord