Advertisement
Guest User

Untitled

a guest
Sep 6th, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. #@gui Neon alpha: fx_neon_alpha, fx_neon_alpha_preview(0)
  2. #@gui : sep = separator(), note = note("Gradient norm")
  3. #@gui : 1. Smoothness = float(0,0,10)
  4. #@gui : 2. Linearity = float(0.45,0,1.5)
  5. #@gui : 3. Min threshold = float(40,0,100)
  6. #@gui : 4. Max threshold = float(60,0,100)
  7. #@gui : 5. Negative = bool(0)
  8. #@gui : 6. Blur original = float(2,0,20)
  9. #@gui : 7. Saturation = float(1.15,0,4)
  10. #@gui : sep = separator(), note = note("Colour Glow 1")
  11. #@gui : 8. Size = float(20,0,100)
  12. #@gui : 9. Intensity = float(0.4,0,3)
  13. #@gui : 10. Darken = float(0.1,0,1)
  14. #@gui : 11. Saturation = float(2.25,0,4)
  15. #@gui : sep = separator(), note = note("Colour Glow 2")
  16. #@gui : 12. Size = float(5,0,100)
  17. #@gui : 13. Intensity = float(0.2,0,3)
  18. #@gui : 14. Darken = float(0.1,0,1)
  19. #@gui : 15. Saturation = float(2.25,0,4)
  20. #@gui : sep = separator(), note = note("Boost Glow")
  21. #@gui : 16. Size = float(2,0,5)
  22. #@gui : 17. Intensity = float(1,0,2)
  23. fx_neon_alpha :
  24. repeat $! l[$>]
  25. to_rgba
  26. +split_opacity
  27. rm[1]
  28. fx_solidify_td[0] 100,0,10,2,0 +invert_rgb[0]
  29. blend[1,2] difference
  30. fx_gradient_norm[1] ${1-4},0
  31. if {$7!=1}
  32. l[0] to_rgb[0] rgb2hsl[0] s[0] c
  33. *[1] {$7^2.5}
  34. a[0-2] c hsl2rgb[0]
  35. endl fi
  36. if $6
  37. b[0] $6
  38. fi
  39.  
  40.  
  41.  
  42. [0] [1] a[2,3] c b[2] $8,1 *[2] {$9*sqrt($8)} -[2] {(($9*sqrt($8)*128)-1)^(sqrt($10))}
  43. [0] [1] a[3,4] c b[3] $12,1 *[3] {$13*sqrt($12)} -[3] {(($13*sqrt($12)*128)-1)^(sqrt($14))}
  44. split_opacity[2,3]
  45.  
  46. l[2] to_rgb[0] rgb2hsv[0] s[0] c
  47. *[1] {$11^2.5}
  48. +[2] 1
  49. a[0-2] c hsv2rgb[0] endl
  50. l[4] to_rgb[0] rgb2hsv[0] s[0] c
  51. *[1] {$15^2.5}
  52. +[2] 1
  53. a[0-2] c hsv2rgb[0] endl
  54.  
  55.  
  56.  
  57.  
  58. blend[3,5] average
  59. blend[2,4] add
  60. #l[2] to_rgb[0] rgb2hsv[0] s[0] c
  61. #+[2] 1
  62. #a[0-2] c hsv2rgb[0] endl
  63.  
  64. +blend[0,2] add rm[0] mv[3] 0
  65. [1]
  66. a[0,1] c a[1,2] c [1] mv[3] 0
  67. blend[0,1] alpha blend[0,1] add
  68.  
  69. #a[0,1] c
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79. #+b[1] $16,1 *[2] {($9+$13)*$16*$17}
  80. #+b[1] $8,1 *[3] {$9*sqrt($8)} -[3] {(($9*sqrt($8)*128)-1)^(sqrt($10))}
  81. #+b[1] $12,1 *[4] {$13*sqrt($12)} -[4] {(($13*sqrt($12)*128)-1)^(sqrt($14))}
  82. #+b[0] {$12+$8}
  83. #blend[3,4] add
  84. #+a[0,3] c
  85. #a[0,1] c rm[2]
  86.  
  87. #blend[0,1] add
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101. #+b[2] $8,1 *[3] {$9*sqrt($8)} -[3] {(($9*sqrt($8)*128)-1)^(sqrt($10))}
  102. #+b[1] $16,1 *[2] {($9+$13)*$16*$17}
  103. #blend[1,3] add
  104.  
  105.  
  106. #rgb2hsl[1] s[1] c *[2] $11 a[1-3] c hsl2rgb[1] a[1-2] c *[1]
  107.  
  108. #[1] rv[0,1] blend[0,1] alpha blend[0,1] add
  109. #+a[0,1] c
  110.  
  111. #+b[1] $12,1 *[3] {$13*sqrt($12)} -[3] {(($13*sqrt($12)*128)-1)^(sqrt($14))}
  112. #+b[0] $16,1 *[2] {($9+$13)*$16*$17}
  113. #blend[0,2] add
  114. #c 0,255
  115. #+a[0,1] c
  116. #blend[0-1]
  117. #rv[1-4] blend[1-4] add
  118.  
  119.  
  120. #a[0,1] c
  121. endl done
  122. fx_neon_alpha_preview :
  123. fx_neon_alpha $*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement