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

[Constants]
global persist $eye = 0
global persist $brightness = 1
global $glowDecrease = 0
global $glowIncrease = 0
global persist $eyeColor =  0
global persist $hairColor = 0 
global $controlFX = 0
global $maxBrightness = 1

[KeyBothToggle]
condition = $active == 1
key = o 
type = cycle 
$eye = 0,1 - $eye  
$hairColor = 0,1 - $hairColor

[KeyEye]
condition = $active == 1
key = y
type = cycle
$eye = 0,1

[KeyGlowDecrease]
condition = $active == 1 && $maxBrightness < 0.0
key = no_modifiers [
type = hold
$glowDecrease = 1

[KeyGlowIncrease]
condition = $active == 1 && $maxBrightness < 1
key = no_modifiers ]
type = hold
$glowIncrease = 1

[Present]
if $controlFX == 0
    $brightness = $brightness + 0.4
endif   

if $controlFX == 1
    $brightness = $brightness - 0.4
endif

;ControlFX
if $brightness > $maxBrightness
    $brightness = $maxBrightness 
    $controlFX = 1
endif
if $brightness < 1.0
    $brightness = 1.0
    $controlFX = 0
endif

if $glowIncrease == 1 && $maxBrightness < 80.0
    $maxBrightness = $maxBrightness + 2.0
endif
if $glowDecrease == 1 && $maxBrightness > 0.0
    $maxBrightness = $maxBrightness - 2.0
endif

post $active = 0


;-------------------------------------------------
[TextureOverrideS11SwordADiffuse]
hash = a271e894
hash = 7f823598
run = CommandListSkinTexture


if $eye == 1
   $\RabbitFX\brightness = $brightness * 2
   $\RabbitFX\H = 0 + $brightness * 3
   $\RabbitFX\S = 0 
   $\RabbitFX\V = 0 
   $\RabbitFX\interpolate = 1
   ps-t17 = ResourceSwordFX 
   ;ps-t17 = ResourceTransparencyMask
   run = CommandList\RabbitFX\Run
endif


[ResourceSwordFX]
filename = sirenFX.dds

;-------------------------------------------------


;-------------------------------------------------

[ResourceSwordDiffuseMap]
filename = ZhuYuanBodyADiffuse.dds
[ResourceSwordNormalMap]
filename = ZhuYuanBodyANormalMap.dds
[ResourceSwordLightMap]
filename = ZhuYuanBodyALightMap.dds
[ResourceSwordMaterialMap]
filename = ZhuYuanBodyAMaterialMap.dds


[ResourceSwordDiffuseMap]
filename = ZhuYuanHairADiffuse.dds
[ResourceSwordNormalMap]
filename = ZhuYuanHairANormalMap.dds
[ResourceSwordLightMap]
filename = ZhuYuanHairALightMap.dds
[ResourceSwordMaterialMap]
filename = ZhuYuanHairAMaterialMap.dds




;-------------------------------------------------e3ee72d9
