OpenShadingLanguage 1.01
# Compiled by oslc 1.6.2
light indirectlight	%meta{string,description,"Indirect (global illumination) light source"} %emit{1}
param	string	indirectname	"indirect"		%meta{string,description,"Geometry set for indirect lighting"} %meta{string,UItype,"geometryset"}  %read{9,9} %write{2147483647,-1}
param	string	sdbname	""		%meta{string,description,"Spatial database name for indirect cache"}  %read{2147483647,-1} %write{2147483647,-1}
param	string	sdbmode	""		%meta{string,description,"File mode for indirect cache spatial database"} %meta{string,UItype,"enum:,r,w,rw"}  %read{2147483647,-1} %write{2147483647,-1}
param	float	intensity	1		%meta{string,description,"Overall indirect light multiplier"} %meta{float,UImin,0}  %read{10,10} %write{2147483647,-1}
param	float	samples	64		%meta{string,description,"Number of hemispherical samples"} %meta{string,UItype,"int"} %meta{float,UImin,1}  %read{7,7} %write{2147483647,-1}
param	float	adaptive	0		%meta{string,description,"Use adaptive sampling of hemisphere"} %meta{string,UItype,"bool"}  %read{2147483647,-1} %write{2147483647,-1}
param	float	maxerror	-1		%meta{string,description,"Error metric (-1 for global default)"} %meta{float,UImax,1}  %read{9,9} %write{2147483647,-1}
param	float	maxpixeldist	-1		%meta{string,description,"Max pixel distance between indirect samples (-1 for global default)"}  %read{9,9} %write{2147483647,-1}
param	float	bias	-1		%meta{string,description,"Bias - minimum distance for ray hits (-1 for global default)"} %meta{float,UImin,0}  %read{9,9} %write{2147483647,-1}
param	float	maxhitdist	1000000		%meta{string,description,"Max distance for ray hits"} %meta{float,UImin,0}  %read{9,9} %write{2147483647,-1}
param	float	falloff	0		%meta{string,description,"Falloff exponent of indirect light (0 = none)"}  %read{9,9} %write{2147483647,-1}
param	float	falloffmode	0		%meta{string,description,"Alternate falloff mode"} %meta{string,UItype,"bool"}  %read{8,8} %write{2147483647,-1}
param	float	maxlevel	1		%meta{string,description,"Recursive limit for indirect bounces"} %meta{string,UItype,"int"} %meta{float,UImin,0} %meta{float,UImax,8}  %read{1,1} %write{2147483647,-1}
param	float	__nonspecular	1		%meta{string,description,"Non-specular"} %meta{float,UImin,0} %meta{float,UImax,1}  %read{11,11} %write{2147483647,-1}
param	string	__category	"indirect"		%meta{string,description,"Light category"}  %read{2147483647,-1} %write{2147483647,-1}
global	normal	N	%read{3,6} %write{2147483647,-1} %derivs
global	point	Ps	%read{9,9} %write{2147483647,-1} %derivs
global	vector	L	%read{2147483647,-1} %write{13,13}
global	color	Cl	%read{2147483647,-1} %write{10,12}
temp	int	$tmp1	%read{1,1} %write{0,0}
temp	int	$tmp2	%read{2,2} %write{1,1}
temp	int	$tmp3	%read{5,5} %write{4,4}
temp	normal	$tmp4	%read{4,4} %write{3,3}
const	int	$const1	0		%read{12,13} %write{2147483647,-1}
const	float	$const2	0		%read{4,4} %write{2147483647,-1}
temp	color	$tmp5	%read{10,10} %write{9,9}
temp	normal	$tmp6	%read{9,9} %write{6,6} %derivs
const	string	$const3	"traceset"		%read{9,9} %write{2147483647,-1}
const	string	$const4	"coneangle"		%read{9,9} %write{2147483647,-1}
const	float	$const5	1.5707964		%read{9,9} %write{2147483647,-1}
const	string	$const6	"samples"		%read{9,9} %write{2147483647,-1}
temp	int	$tmp7	%read{9,9} %write{7,7}
const	string	$const7	"maxerror"		%read{9,9} %write{2147483647,-1}
const	string	$const8	"maxpixeldist"		%read{9,9} %write{2147483647,-1}
const	string	$const9	"maxdist"		%read{9,9} %write{2147483647,-1}
const	string	$const10	"mindist"		%read{9,9} %write{2147483647,-1}
const	string	$const11	"falloff"		%read{9,9} %write{2147483647,-1}
const	string	$const12	"falloffmode"		%read{9,9} %write{2147483647,-1}
temp	int	$tmp8	%read{9,9} %write{8,8}
const	string	$const13	"__nonspecular"		%read{11,11} %write{2147483647,-1}
code ___main___
# D:\\xrt.git\\src\\osl\\shaders\\indirectlight.osl:118
#         emit (-N, 0) {
	indirectlevel	$tmp1 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\indirectlight.osl"} %line{118} %argrw{"w"}
	lt		$tmp2 $tmp1 maxlevel 	%argrw{"wrr"}
	if		$tmp2 12 14 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\indirectlight.osl:119
#             Cl = intensity * indirect (Ps, normalize(N),
	neg		$tmp4 N 	%line{119} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\indirectlight.osl:131
# 			setmessage ("__nonspecular", __nonspecular);
	emit		$tmp3 $tmp4 $const2 	%line{131} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\indirectlight.osl:119
#             Cl = intensity * indirect (Ps, normalize(N),
	if		$tmp3 12 12 	%line{119} %argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\indirectlight.osl:120
# 									   "traceset", indirectname, "coneangle", M_PI_2,
	normalize	$tmp6 N 	%line{120} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\indirectlight.osl:122
#                                        "maxerror", maxerror,
	assign		$tmp7 samples 	%line{122} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\indirectlight.osl:129
#                                        "filename", sdbname,
	assign		$tmp8 falloffmode 	%line{129} %argrw{"wr"}
	indirect	$tmp5 Ps $tmp6 $const3 indirectname $const4 $const5 $const6 $tmp7 $const7 maxerror $const8 maxpixeldist $const9 maxhitdist $const10 bias $const11 falloff $const12 $tmp8 	%argrw{"wrrrrrrrrrrrrrrrrrrrr"} %argderivs{1,2}
	mul		Cl intensity $tmp5 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\indirectlight.osl:130
#                                        "filemode", sdbmode*/);
	setmessage	$const13 __nonspecular 	%line{130} %argrw{"rr"}
# D:\\xrt.git\\src\\osl\\shaders\\indirectlight.osl:134
#     else {
	assign		Cl $const1 	%line{134} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\indirectlight.osl:135
#         Cl = 0;
	assign		L $const1 	%line{135} %argrw{"wr"}
	end
