Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #@gui Neon alpha: fx_neon_alpha, fx_neon_alpha_preview(0)
- #@gui : sep = separator(), note = note("Gradient norm")
- #@gui : 1. Smoothness = float(0,0,10)
- #@gui : 2. Linearity = float(0.45,0,1.5)
- #@gui : 3. Min threshold = float(40,0,100)
- #@gui : 4. Max threshold = float(60,0,100)
- #@gui : 5. Negative = bool(0)
- #@gui : 6. Blur original = float(2,0,20)
- #@gui : 7. Saturation = float(1.15,0,4)
- #@gui : sep = separator(), note = note("Colour Glow 1")
- #@gui : 8. Size = float(20,0,100)
- #@gui : 9. Intensity = float(0.4,0,3)
- #@gui : 10. Darken = float(0.1,0,1)
- #@gui : 11. Saturation = float(2.25,0,4)
- #@gui : sep = separator(), note = note("Colour Glow 2")
- #@gui : 12. Size = float(5,0,100)
- #@gui : 13. Intensity = float(0.2,0,3)
- #@gui : 14. Darken = float(0.1,0,1)
- #@gui : 15. Saturation = float(2.25,0,4)
- #@gui : sep = separator(), note = note("Boost Glow")
- #@gui : 16. Size = float(2,0,5)
- #@gui : 17. Intensity = float(1,0,2)
- fx_neon_alpha :
- repeat $! l[$>]
- to_rgba
- +split_opacity
- rm[1]
- fx_solidify_td[0] 100,0,10,2,0 +invert_rgb[0]
- blend[1,2] difference
- fx_gradient_norm[1] ${1-4},0
- if {$7!=1}
- l[0] to_rgb[0] rgb2hsl[0] s[0] c
- *[1] {$7^2.5}
- a[0-2] c hsl2rgb[0]
- endl fi
- if $6
- b[0] $6
- fi
- [0] [1] a[2,3] c b[2] $8,1 *[2] {$9*sqrt($8)} -[2] {(($9*sqrt($8)*128)-1)^(sqrt($10))}
- [0] [1] a[3,4] c b[3] $12,1 *[3] {$13*sqrt($12)} -[3] {(($13*sqrt($12)*128)-1)^(sqrt($14))}
- split_opacity[2,3]
- l[2] to_rgb[0] rgb2hsv[0] s[0] c
- *[1] {$11^2.5}
- +[2] 1
- a[0-2] c hsv2rgb[0] endl
- l[4] to_rgb[0] rgb2hsv[0] s[0] c
- *[1] {$15^2.5}
- +[2] 1
- a[0-2] c hsv2rgb[0] endl
- blend[3,5] average
- blend[2,4] add
- #l[2] to_rgb[0] rgb2hsv[0] s[0] c
- #+[2] 1
- #a[0-2] c hsv2rgb[0] endl
- +blend[0,2] add rm[0] mv[3] 0
- [1]
- a[0,1] c a[1,2] c [1] mv[3] 0
- blend[0,1] alpha blend[0,1] add
- #a[0,1] c
- #+b[1] $16,1 *[2] {($9+$13)*$16*$17}
- #+b[1] $8,1 *[3] {$9*sqrt($8)} -[3] {(($9*sqrt($8)*128)-1)^(sqrt($10))}
- #+b[1] $12,1 *[4] {$13*sqrt($12)} -[4] {(($13*sqrt($12)*128)-1)^(sqrt($14))}
- #+b[0] {$12+$8}
- #blend[3,4] add
- #+a[0,3] c
- #a[0,1] c rm[2]
- #blend[0,1] add
- #+b[2] $8,1 *[3] {$9*sqrt($8)} -[3] {(($9*sqrt($8)*128)-1)^(sqrt($10))}
- #+b[1] $16,1 *[2] {($9+$13)*$16*$17}
- #blend[1,3] add
- #rgb2hsl[1] s[1] c *[2] $11 a[1-3] c hsl2rgb[1] a[1-2] c *[1]
- #[1] rv[0,1] blend[0,1] alpha blend[0,1] add
- #+a[0,1] c
- #+b[1] $12,1 *[3] {$13*sqrt($12)} -[3] {(($13*sqrt($12)*128)-1)^(sqrt($14))}
- #+b[0] $16,1 *[2] {($9+$13)*$16*$17}
- #blend[0,2] add
- #c 0,255
- #+a[0,1] c
- #blend[0-1]
- #rv[1-4] blend[1-4] add
- #a[0,1] c
- endl done
- fx_neon_alpha_preview :
- fx_neon_alpha $*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement