1#!version 2.2.6 2surface 3#!parameters: 4uniform string texturename = "" 5uniform float At = 1 6#!variables: 7varying vector Ct 8varying float Ot 9varying float channels 10varying float temporary_0 11varying float temporary_1 12uniform float temporary_2 13varying float temporary_3 14varying float temporary_4 15varying float temporary_5 16varying vector temporary_6 17#!Init: 18 return 19#!Code: 20 movevv Ci Cs 21 movevv Oi Os 22 sneql temporary_2 texturename "" 23 vufloat temporary_1 temporary_2 24 textureinfo ("f=SSF") temporary_4 texturename "channels" channels 25 vufloat temporary_5 1.0 26 feql temporary_3 temporary_4 temporary_5 27 and temporary_0 temporary_1 temporary_3 28 if temporary_0 #!Label5 29 vufloat temporary_3 3 30 flt temporary_1 channels temporary_3 31 if temporary_1 #!Label8 32 texture ("f=SFffSf") temporary_3 texturename 0 s t "width" 0.0 33 vfromf Ct temporary_3 34 texture ("f=SFffSfsf") Ot texturename 1 s t "fill" 1.0 "width" 0.0 35#!Label8: 36 else #!Label7 37 texture ("c=SFffSf") Ct texturename 0 s t "width" 0.0 38 texture ("f=SFffSfsf") Ot texturename 3 s t "fill" 1.0 "width" 0.0 39#!Label7: 40 endif 41 subff temporary_2 1.0 At 42 vufloat temporary_1 temporary_2 43 vufloat temporary_4 At 44 mulff temporary_3 temporary_4 Ot 45 addff Ot temporary_1 temporary_3 46 mulvv Ci Ci Ct 47 vfromf temporary_6 Ot 48 mulvv Oi Oi temporary_6 49#!Label5: 50 endif 51 mulvv Ci Ci Oi 52 return 53