OpenShadingLanguage 1.01
# Compiled by oslc 1.6.2
light pointlight	%meta{string,help,"Point/omni light, simple, with shadows"} %emit{1}
param	float	intensity	1		%meta{string,help,"Overall light intensity"} %meta{float,min,0}  %read{6,6} %write{2147483647,-1}
param	color	lightcolor	1 1 1		%meta{string,help,"Overall light color"}  %read{7,7} %write{2147483647,-1}
param	point	from	0 0 0		%meta{string,help,"Light origin (default: local origin)"}  %read{1,15} %write{0,0} %derivs %initexpr
param	float	falloff	2		%meta{string,help,"Distance falloff exponent"} %meta{float,min,0} %meta{float,max,3}  %read{5,5} %write{2147483647,-1}
param	string	shadowname	""		%meta{string,help,"Shadow name (map or geomset)"}  %read{8,15} %write{2147483647,-1}
param	float	shadowsamples	1		%meta{string,help,"Shadow blur"} %meta{float,min,1} %meta{float,max,256}  %read{14,14} %write{2147483647,-1}
param	float	shadowblur	0		%meta{string,help,"Shadow blur"} %meta{float,min,0} %meta{float,max,1}  %read{15,15} %write{2147483647,-1}
param	float	shadowbias	-1		%meta{string,help,"Shadow bias (-1 means default)"} %meta{float,min,0} %meta{float,max,1}  %read{15,15} %write{2147483647,-1}
param	float	__nonspecular	0		%meta{string,help,"Non-specular"} %meta{float,min,0} %meta{float,max,1}  %read{3,3} %write{2147483647,-1}
global	point	Ps	%read{15,15} %write{2147483647,-1} %derivs
global	vector	L	%read{4,4} %write{2147483647,-1}
global	color	Cl	%read{16,16} %write{7,16}
local	float	___291_atten	%read{7,10} %write{6,6}
const	string	$const1	"shader"		%read{0,0} %write{2147483647,-1}
const	int	$const2	0		%read{11,11} %write{2147483647,-1}
const	float	$const3	0		%read{0,0} %write{2147483647,-1}
temp	int	$tmp1	%read{2,2} %write{1,1}
const	string	$const4	"__nonspecular"		%read{3,3} %write{2147483647,-1}
temp	float	$tmp2	%read{6,6} %write{5,5}
temp	float	$tmp3	%read{5,5} %write{4,4}
temp	int	$tmp4	%read{9,13} %write{8,12}
const	string	$const5	""		%read{8,8} %write{2147483647,-1}
const	float	$const6	9.9999997e-005		%read{10,10} %write{2147483647,-1}
temp	int	$tmp5	%read{11,11} %write{10,10}
temp	int	$tmp6	%read{12,12} %write{11,11}
temp	color	$tmp7	%read{16,16} %write{15,15}
const	string	$const7	"traceset"		%read{15,15} %write{2147483647,-1}
const	string	$const8	"samples"		%read{15,15} %write{2147483647,-1}
temp	int	$tmp8	%read{15,15} %write{14,14}
const	string	$const9	"blur"		%read{15,15} %write{2147483647,-1}
const	string	$const10	"bias"		%read{15,15} %write{2147483647,-1}
code from
# D:\\xrt.git\\src\\osl\\shaders\\pointlight.osl:63
#         [[  string help = "Light origin (default: local origin)" ]],
	point		from $const1 $const3 $const3 $const3 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\pointlight.osl"} %line{63} %argrw{"wrrrr"}
code ___main___
# D:\\xrt.git\\src\\osl\\shaders\\pointlight.osl:95
# }
	emit		$tmp1 from 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\pointlight.osl"} %line{95} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\pointlight.osl:86
# 		setmessage ("__nonspecular", __nonspecular);
	if		$tmp1 17 17 	%line{86} %argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\pointlight.osl:87
# 		float atten = intensity / pow(length(L), falloff);
	setmessage	$const4 __nonspecular 	%line{87} %argrw{"rr"}
# D:\\xrt.git\\src\\osl\\shaders\\pointlight.osl:88
# 		Cl = atten * lightcolor;
	length		$tmp3 L 	%line{88} %argrw{"wr"}
	pow		$tmp2 $tmp3 falloff 	%argrw{"wrr"}
	div		___291_atten intensity $tmp2 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\pointlight.osl:89
# 
	mul		Cl ___291_atten lightcolor 	%line{89} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\pointlight.osl:92
#             Cl *= transmission (Ps, from, "traceset", shadowname,"samples", (int)shadowsamples,
	neq		$tmp4 shadowname $const5 	%line{92} %argrw{"wrr"}
	if		$tmp4 13 13 	%argrw{"r"}
	gt		$tmp5 ___291_atten $const6 	%argrw{"wrr"}
	neq		$tmp6 $tmp5 $const2 	%argrw{"wrr"}
	assign		$tmp4 $tmp6 	%argrw{"wr"}
	if		$tmp4 17 17 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\pointlight.osl:93
#                                       "blur", shadowblur, "bias", shadowbias);
	assign		$tmp8 shadowsamples 	%line{93} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\pointlight.osl:94
#     }
	transmission	$tmp7 Ps from $const7 shadowname $const8 $tmp8 $const9 shadowblur $const10 shadowbias 	%line{94} %argrw{"wrrrrrrrrrr"} %argderivs{1,2}
	mul		Cl Cl $tmp7 	%argrw{"wrr"}
	end
