#!version 2.2.4 surface #!parameters: uniform float textFreq = 7 uniform float noiFreq = 12 uniform float turbPower = 12 uniform float rimEdge = 1 uniform float additive = .3 uniform float FRAME = 0 #!variables: varying vector PP varying float PPwidth varying float turb varying float f varying float noi varying float freq varying vector sc varying vector lc varying float lo varying float lo1 varying vector Nf varying vector dar varying vector middar varying vector mid varying vector midhi varying vector hi varying vector temporary_0 varying vector temporary_1 uniform vector temporary_2 varying float temporary_3 varying float temporary_4 varying float temporary_5 varying float temporary_6 varying float temporary_7 varying float temporary_8 varying vector temporary_9 varying float temporary_10 varying float temporary_11 #!Init: return #!Code: movevv sc Cs transform ("p=Sp") temporary_0 "shader" P vfromf temporary_2 textFreq vuvector temporary_1 temporary_2 mulvv PP temporary_0 temporary_1 area ("f=p") temporary_4 PP sqrt ("f=f") temporary_3 temporary_4 vufloat temporary_4 1.0e-6 max ("f=ff") PPwidth temporary_3 temporary_4 vufloat turb 0 vufloat freq noiFreq vufloat temporary_7 2 vufloat temporary_11 3.141592654 mulff temporary_10 freq temporary_11 vfromf temporary_9 temporary_10 addvv temporary_1 PP temporary_9 vfromf temporary_2 FRAME vuvector temporary_9 temporary_2 addvv temporary_0 temporary_1 temporary_9 noise ("f=p") temporary_8 temporary_0 mulff temporary_6 temporary_7 temporary_8 vufloat temporary_7 1 subff temporary_5 temporary_6 temporary_7 vufloat temporary_7 1 vufloat temporary_10 0.2 vufloat temporary_11 0.75 smoothstep ("f=fff") temporary_8 temporary_10 temporary_11 PPwidth subff temporary_6 temporary_7 temporary_8 mulff temporary_4 temporary_5 temporary_6 abs ("f=f") temporary_3 temporary_4 addff turb turb temporary_3 vufloat temporary_4 1 subff temporary_3 temporary_4 turb vufloat temporary_4 turbPower pow ("f=ff") turb temporary_3 temporary_4 moveff lo turb vfromf temporary_2 0.15 vuvector temporary_0 temporary_2 mulvv dar sc temporary_0 vfromf temporary_2 0.25 vuvector temporary_0 temporary_2 mulvv middar sc temporary_0 vfromf temporary_2 0.5 vuvector temporary_0 temporary_2 mulvv mid sc temporary_0 vfromf temporary_2 0.75 vuvector temporary_0 temporary_2 mulvv midhi sc temporary_0 vfromf temporary_2 0.9 vuvector temporary_0 temporary_2 mulvv hi sc temporary_0 vufloat noi 0 vfromf temporary_2 3.141592654 vuvector temporary_9 temporary_2 mulvv temporary_1 PP temporary_9 vfromf temporary_2 FRAME vuvector temporary_9 temporary_2 addvv temporary_0 temporary_1 temporary_9 noise ("f=p") temporary_3 temporary_0 addff noi noi temporary_3 vufloat temporary_3 2 pow ("f=ff") noi noi temporary_3 spline ("c=Sfccccccccccccc") lc "catmull-rom" noi dar dar middar mid midhi hi midhi middar mid hi midhi dar dar mix ("v=vvf") sc sc lc lo vufloat temporary_3 1 vufloat temporary_5 0 vufloat temporary_6 rimEdge normalize ("v=v") temporary_0 N normalize ("v=v") temporary_1 I dot temporary_8 temporary_0 temporary_1 abs ("f=f") temporary_7 temporary_8 smoothstep ("f=fff") temporary_4 temporary_5 temporary_6 temporary_7 subff lo1 temporary_3 temporary_4 dot temporary_4 N I vufloat temporary_5 0 fgt temporary_3 temporary_4 temporary_5 if temporary_3 #!Label4 vufloat temporary_6 1.5 divff temporary_5 lo temporary_6 addff temporary_4 lo1 temporary_5 mulff lo lo temporary_4 #!Label4: else #!Label3 vufloat temporary_6 2.5 divff temporary_5 lo temporary_6 addff temporary_4 lo1 temporary_5 mulff lo lo temporary_4 #!Label3: endif mix ("v=vvf") temporary_0 sc lc lo vufloat temporary_4 additive mulff temporary_3 lo temporary_4 vfromf temporary_1 temporary_3 addvv sc temporary_0 temporary_1 vfromf temporary_0 lo mulvv Oi Os temporary_0 vfromf temporary_0 lo mulvv Ci temporary_0 sc return