OpenShadingLanguage 1.01
# Compiled by oslc 1.6.2
light shadowpoint%emit{1}
param	float	intensity	1		%read{72,72} %write{2147483647,-1}
param	color	lightcolor	1 1 1		%read{73,73} %write{2147483647,-1}
param	point	from	0 0 0		%read{2,71} %write{0,0} %derivs %initexpr
param	string	sfpx	""		%read{22,22} %write{2147483647,-1}
param	string	sfnx	""		%read{28,28} %write{2147483647,-1}
param	string	sfpy	""		%read{42,42} %write{2147483647,-1}
param	string	sfny	""		%read{48,48} %write{2147483647,-1}
param	string	sfpz	""		%read{62,62} %write{2147483647,-1}
param	string	sfnz	""		%read{68,68} %write{2147483647,-1}
param	float	width	1		%read{2147483647,-1} %write{2147483647,-1}
param	float	samples	16		%read{26,70} %write{2147483647,-1}
global	point	Ps	%read{27,71} %write{2147483647,-1} %derivs
global	vector	L	%read{5,74} %write{2147483647,-1}
global	color	Cl	%read{2147483647,-1} %write{75,75}
local	float	attenuation	%read{72,72} %write{1,71}
local	float	Lx	%read{7,19} %write{6,6}
local	float	Ly	%read{9,39} %write{8,8}
local	float	Lz	%read{11,59} %write{10,10}
local	float	AbsLx	%read{12,55} %write{7,7}
local	float	AbsLy	%read{12,52} %write{9,9}
local	float	AbsLz	%read{15,55} %write{11,11}
local	vector	Lrel	%read{6,10} %write{5,5}
const	string	$const1	"shader"		%read{0,0} %write{2147483647,-1}
const	int	$const2	0		%read{6,63} %write{2147483647,-1}
const	float	$const3	0		%read{0,59} %write{2147483647,-1}
temp	int	$tmp1	%read{3,3} %write{2,2}
const	string	$const4	"world"		%read{5,5} %write{2147483647,-1}
const	string	$const5	"transform"		%read{4,4} %write{2147483647,-1}
const	string	$const6	"common"		%read{5,5} %write{2147483647,-1}
const	int	$const7	1		%read{8,8} %write{2147483647,-1}
const	int	$const8	2		%read{10,10} %write{2147483647,-1}
temp	int	$tmp2	%read{13,13} %write{12,12}
temp	int	$tmp3	%read{14,18} %write{13,17}
temp	int	$tmp4	%read{16,16} %write{15,15}
temp	int	$tmp5	%read{17,17} %write{16,16}
temp	int	$tmp6	%read{20,20} %write{19,19}
temp	int	$tmp7	%read{21,25} %write{20,24}
const	string	$const9	""		%read{22,68} %write{2147483647,-1}
temp	int	$tmp8	%read{23,23} %write{22,22}
temp	int	$tmp9	%read{24,24} %write{23,23}
const	string	$const10	"samples"		%read{27,71} %write{2147483647,-1}
temp	int	$tmp10	%read{27,27} %write{26,26}
temp	int	$tmp11	%read{29,29} %write{28,28}
temp	int	$tmp12	%read{31,31} %write{30,30}
temp	int	$tmp13	%read{33,33} %write{32,32}
temp	int	$tmp14	%read{34,38} %write{33,37}
temp	int	$tmp15	%read{36,36} %write{35,35}
temp	int	$tmp16	%read{37,37} %write{36,36}
temp	int	$tmp17	%read{40,40} %write{39,39}
temp	int	$tmp18	%read{41,45} %write{40,44}
temp	int	$tmp19	%read{43,43} %write{42,42}
temp	int	$tmp20	%read{44,44} %write{43,43}
temp	int	$tmp21	%read{47,47} %write{46,46}
temp	int	$tmp22	%read{49,49} %write{48,48}
temp	int	$tmp23	%read{51,51} %write{50,50}
temp	int	$tmp24	%read{53,53} %write{52,52}
temp	int	$tmp25	%read{54,58} %write{53,57}
temp	int	$tmp26	%read{56,56} %write{55,55}
temp	int	$tmp27	%read{57,57} %write{56,56}
temp	int	$tmp28	%read{60,60} %write{59,59}
temp	int	$tmp29	%read{61,65} %write{60,64}
temp	int	$tmp30	%read{63,63} %write{62,62}
temp	int	$tmp31	%read{64,64} %write{63,63}
temp	int	$tmp32	%read{67,67} %write{66,66}
temp	int	$tmp33	%read{69,69} %write{68,68}
temp	int	$tmp34	%read{71,71} %write{70,70}
temp	float	$tmp35	%read{73,73} %write{72,72}
temp	color	$tmp36	%read{75,75} %write{73,73}
temp	float	$tmp37	%read{75,75} %write{74,74}
code from
# D:\\xrt.git\\src\\osl\\shaders\\shadowpoint.osl:6
#     string    sfpx    = "",
	point		from $const1 $const3 $const3 $const3 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\shadowpoint.osl"} %line{6} %argrw{"wrrrr"}
code ___main___
# D:\\xrt.git\\src\\osl\\shaders\\shadowpoint.osl:17
#     float    Lx, Ly, Lz, AbsLx, AbsLy, AbsLz;
	assign		attenuation $const3 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\shadowpoint.osl"} %line{17} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\shadowpoint.osl:53
# }
	emit		$tmp1 from 	%line{53} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\shadowpoint.osl:21
# 
	if		$tmp1 76 76 	%line{21} %argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\shadowpoint.osl:23
# 
	functioncall	$const5 6 	%line{23} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:248
#     } else {
	transformv	Lrel $const6 $const4 L 	%filename{"D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h"} %line{248} %argrw{"wrrr"}
# D:\\xrt.git\\src\\osl\\shaders\\shadowpoint.osl:25
#         AbsLx = abs(Lx);
	compref		Lx Lrel $const2 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\shadowpoint.osl"} %line{25} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\shadowpoint.osl:26
#         Ly = Lrel[1];
	abs		AbsLx Lx 	%line{26} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\shadowpoint.osl:27
#         AbsLy = abs(Ly);
	compref		Ly Lrel $const7 	%line{27} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\shadowpoint.osl:28
#         Lz = Lrel[2];
	abs		AbsLy Ly 	%line{28} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\shadowpoint.osl:29
#         AbsLz = abs(Lz);
	compref		Lz Lrel $const8 	%line{29} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\shadowpoint.osl:30
# 
	abs		AbsLz Lz 	%line{30} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\shadowpoint.osl:32
#             if((Lx > 0.0)&&(sfpx != ""))
	gt		$tmp2 AbsLx AbsLy 	%line{32} %argrw{"wrr"}
	neq		$tmp3 $tmp2 $const2 	%argrw{"wrr"}
	if		$tmp3 18 18 	%argrw{"r"}
	gt		$tmp4 AbsLx AbsLz 	%argrw{"wrr"}
	neq		$tmp5 $tmp4 $const2 	%argrw{"wrr"}
	assign		$tmp3 $tmp5 	%argrw{"wr"}
	if		$tmp3 32 72 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\shadowpoint.osl:33
# 		attenuation = transmission( Ps, from, "samples", (int)samples );
	gt		$tmp6 Lx $const3 	%line{33} %argrw{"wrr"}
	neq		$tmp7 $tmp6 $const2 	%argrw{"wrr"}
	if		$tmp7 25 25 	%argrw{"r"}
	neq		$tmp8 sfpx $const9 	%argrw{"wrr"}
	neq		$tmp9 $tmp8 $const2 	%argrw{"wrr"}
	assign		$tmp7 $tmp9 	%argrw{"wr"}
	if		$tmp7 28 32 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\shadowpoint.osl:34
#             else if (sfnx != "")
	assign		$tmp10 samples 	%line{34} %argrw{"wr"}
	transmission	attenuation Ps from $const10 $tmp10 	%argrw{"wrrrr"} %argderivs{1,2}
# D:\\xrt.git\\src\\osl\\shaders\\shadowpoint.osl:35
# 		attenuation = transmission( Ps, from, "samples", (int)samples );
	neq		$tmp11 sfnx $const9 	%line{35} %argrw{"wrr"}
	if		$tmp11 32 32 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\shadowpoint.osl:36
# 	}
	assign		$tmp12 samples 	%line{36} %argrw{"wr"}
	transmission	attenuation Ps from $const10 $tmp12 	%argrw{"wrrrr"} %argderivs{1,2}
# D:\\xrt.git\\src\\osl\\shaders\\shadowpoint.osl:38
#             if((Ly > 0.0)&&(sfpy != ""))
	gt		$tmp13 AbsLy AbsLx 	%line{38} %argrw{"wrr"}
	neq		$tmp14 $tmp13 $const2 	%argrw{"wrr"}
	if		$tmp14 38 38 	%argrw{"r"}
	gt		$tmp15 AbsLy AbsLz 	%argrw{"wrr"}
	neq		$tmp16 $tmp15 $const2 	%argrw{"wrr"}
	assign		$tmp14 $tmp16 	%argrw{"wr"}
	if		$tmp14 52 72 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\shadowpoint.osl:39
# 		attenuation = transmission( Ps, from, "samples", (int)samples );
	gt		$tmp17 Ly $const3 	%line{39} %argrw{"wrr"}
	neq		$tmp18 $tmp17 $const2 	%argrw{"wrr"}
	if		$tmp18 45 45 	%argrw{"r"}
	neq		$tmp19 sfpy $const9 	%argrw{"wrr"}
	neq		$tmp20 $tmp19 $const2 	%argrw{"wrr"}
	assign		$tmp18 $tmp20 	%argrw{"wr"}
	if		$tmp18 48 52 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\shadowpoint.osl:40
#             else if (sfny != "")
	assign		$tmp21 samples 	%line{40} %argrw{"wr"}
	transmission	attenuation Ps from $const10 $tmp21 	%argrw{"wrrrr"} %argderivs{1,2}
# D:\\xrt.git\\src\\osl\\shaders\\shadowpoint.osl:41
# 		attenuation = transmission( Ps, from, "samples", (int)samples );
	neq		$tmp22 sfny $const9 	%line{41} %argrw{"wrr"}
	if		$tmp22 52 52 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\shadowpoint.osl:42
# 	}
	assign		$tmp23 samples 	%line{42} %argrw{"wr"}
	transmission	attenuation Ps from $const10 $tmp23 	%argrw{"wrrrr"} %argderivs{1,2}
# D:\\xrt.git\\src\\osl\\shaders\\shadowpoint.osl:44
#             if((Lz > 0.0)&&(sfpz != ""))
	gt		$tmp24 AbsLz AbsLy 	%line{44} %argrw{"wrr"}
	neq		$tmp25 $tmp24 $const2 	%argrw{"wrr"}
	if		$tmp25 58 58 	%argrw{"r"}
	gt		$tmp26 AbsLz AbsLx 	%argrw{"wrr"}
	neq		$tmp27 $tmp26 $const2 	%argrw{"wrr"}
	assign		$tmp25 $tmp27 	%argrw{"wr"}
	if		$tmp25 72 72 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\shadowpoint.osl:45
# 		attenuation = transmission( Ps, from, "samples", (int)samples );
	gt		$tmp28 Lz $const3 	%line{45} %argrw{"wrr"}
	neq		$tmp29 $tmp28 $const2 	%argrw{"wrr"}
	if		$tmp29 65 65 	%argrw{"r"}
	neq		$tmp30 sfpz $const9 	%argrw{"wrr"}
	neq		$tmp31 $tmp30 $const2 	%argrw{"wrr"}
	assign		$tmp29 $tmp31 	%argrw{"wr"}
	if		$tmp29 68 72 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\shadowpoint.osl:46
#             else if (sfnz != "")
	assign		$tmp32 samples 	%line{46} %argrw{"wr"}
	transmission	attenuation Ps from $const10 $tmp32 	%argrw{"wrrrr"} %argderivs{1,2}
# D:\\xrt.git\\src\\osl\\shaders\\shadowpoint.osl:47
# 		attenuation = transmission( Ps, from, "samples", (int)samples );
	neq		$tmp33 sfnz $const9 	%line{47} %argrw{"wrr"}
	if		$tmp33 72 72 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\shadowpoint.osl:48
# 	}
	assign		$tmp34 samples 	%line{48} %argrw{"wr"}
	transmission	attenuation Ps from $const10 $tmp34 	%argrw{"wrrrr"} %argderivs{1,2}
# D:\\xrt.git\\src\\osl\\shaders\\shadowpoint.osl:52
#     }
	mul		$tmp35 attenuation intensity 	%line{52} %argrw{"wrr"}
	mul		$tmp36 $tmp35 lightcolor 	%argrw{"wrr"}
	dot		$tmp37 L L 	%argrw{"wrr"}
	div		Cl $tmp36 $tmp37 	%argrw{"wrr"}
	end
