#!version 1.6.3 light #!parameters: float intensity = 1 color lightcolor = 1 string shadowname = "" point from #!variables: uniform vector temporary_0 float vis vector temporary_1 boolean temporary_2 uniform boolean temporary_3 float temporary_4 float temporary_5 vector temporary_6 vector temporary_7 vector temporary_8 #!Init: movess shadowname "" vfromf temporary_0 0 0 0 pfrom from "shader" temporary_0 return #!Code: vuvector temporary_1 from illuminate temporary_1 #!Label4 seql temporary_3 shadowname "" vuboolean temporary_2 temporary_3 if temporary_2 #!Label6 vufloat vis 1 #!Label6: else #!Label5 vufloat temporary_4 1 shadow ("f=SFp") temporary_5 shadowname 0 Ps subff vis temporary_4 temporary_5 #!Label5: endif vufloat temporary_5 intensity mulff temporary_4 vis temporary_5 vfromf temporary_7 temporary_4 vuvector temporary_8 lightcolor mulvv temporary_6 temporary_7 temporary_8 dot temporary_4 L L vfromf temporary_7 temporary_4 divvv Cl temporary_6 temporary_7 #!Label4: endilluminate return