OpenShadingLanguage 1.01
# Compiled by oslc 1.6.2
light maya_spotLight%emit{1}
param	color	_color	1 1 1		%read{98,98} %write{2147483647,-1}
param	float	useDepthMapShadows	0		%read{0,0} %write{2147483647,-1}
param	float	useRayTraceShadows	0		%read{114,114} %write{0,0} %initexpr
param	float	shadowRays	1		%read{114,114} %write{2147483647,-1}
param	float	intensity	1		%read{112,112} %write{2147483647,-1}
param	float	coneAngle	0		%read{15,22} %write{3,3} %initexpr
param	float	penumbraAngle	0		%read{18,90} %write{2147483647,-1}
param	float	dropoff	0		%read{44,46} %write{2147483647,-1}
param	float	decayRate	0		%read{34,42} %write{2147483647,-1}
param	float	barnDoors	0		%read{52,52} %write{2147483647,-1}
param	float	leftBarnDoor	0		%read{88,91} %write{2147483647,-1}
param	float	rightBarnDoor	0		%read{79,84} %write{2147483647,-1}
param	float	topBarnDoor	0		%read{71,74} %write{2147483647,-1}
param	float	bottomBarnDoor	0		%read{62,67} %write{2147483647,-1}
param	color	shadowColor	0 0 0		%read{136,136} %write{2147483647,-1}
param	string	dmapName	""		%read{2147483647,-1} %write{2147483647,-1}
param	float	dmapBias	0.001		%read{2147483647,-1} %write{2147483647,-1}
param	float	dmapBlur	0		%read{2147483647,-1} %write{2147483647,-1}
param	float	lightRadius	0		%read{126,129} %write{2147483647,-1}
param	float	dmapFilterSize	1		%read{2147483647,-1} %write{2147483647,-1}
param	float	emitDiffuse	1		%read{4,4} %write{2147483647,-1}
param	float	emitSpecular	1		%read{5,5} %write{2147483647,-1}
param	float	gelatoUseOcclusion	1		%read{99,99} %write{2147483647,-1}
param	float	gelatoOcclusionMaxHitDist	100		%read{109,109} %write{2147483647,-1}
param	string	gelatoOcclusionGeometrySet	""		%read{102,109} %write{2147483647,-1}
param	float	gelatoOcclusionSamples	64		%read{107,107} %write{2147483647,-1}
param	float	gelatoOcclusionAdaptive	0		%read{2147483647,-1} %write{2147483647,-1}
param	float	gelatoOcclusionMaxError	0.25		%read{109,109} %write{2147483647,-1}
param	float	gelatoOcclusionMaxPixelDist	5		%read{109,109} %write{2147483647,-1}
param	float	gelatoOcclusionBias	0.0099999998		%read{109,109} %write{2147483647,-1}
param	float	gelatoOcclusionFalloff	0.1		%read{109,109} %write{2147483647,-1}
param	float	gelatoOcclusionFalloffMode	0		%read{108,108} %write{2147483647,-1}
param	float	gelatoOcclusionGain	1		%read{2147483647,-1} %write{2147483647,-1}
param	float	gelatoOcclusionGamma	1		%read{2147483647,-1} %write{2147483647,-1}
oparam	float	__nondiffuse	0		%read{6,6} %write{4,4} %initexpr
oparam	float	__nonspecular	0		%read{7,7} %write{5,5} %initexpr
param	string	lightid	""		%read{2147483647,-1} %write{2147483647,-1}
global	normal	N	%read{106,106} %write{2147483647,-1} %derivs
global	point	Ps	%read{109,134} %write{2147483647,-1} %derivs
global	vector	L	%read{28,59} %write{2147483647,-1}
global	color	Cl	%read{116,136} %write{113,137}
local	color	___296_lcolor	%read{137,137} %write{116,136}
local	point	___297_to	%read{128,134} %write{123,127} %derivs
local	float	___297_angle	%read{134,134} %write{126,130}
local	float	___297_samples	%read{133,133} %write{131,131}
local	color	___297_Ctransmission	%read{135,135} %write{132,134}
local	color	___297_Cshad	%read{136,136} %write{135,135}
local	point	from	%read{26,26} %write{8,8}
local	vector	A	%read{26,59} %write{10,10}
local	vector	xaxis	%read{54,54} %write{12,12}
local	vector	yaxis	%read{58,58} %write{14,14}
local	float	coslimit	%read{20,21} %write{16,16}
local	float	cospen	%read{20,21} %write{19,19}
local	float	low	%read{96,96} %write{20,20}
local	float	high	%read{96,96} %write{21,21}
local	float	max_angle	%read{25,26} %write{22,25}
local	float	___300_distance_squared	%read{29,38} %write{28,28}
local	float	___300_distance	%read{32,42} %write{29,29}
local	float	___300_cosangle	%read{47,96} %write{32,32}
local	float	___300_atten	%read{38,112} %write{33,111}
local	float	___301_anglex	%read{70,75} %write{57,57}
local	float	___301_angley	%read{87,92} %write{61,61}
local	color	___300_lcolor	%read{113,113} %write{98,98}
local	float	___302_a	%read{110,110} %write{109,109}
const	float	$const2	40		%read{3,3} %write{2147483647,-1}
const	string	$const3	"radians"		%read{1,124} %write{2147483647,-1}
const	float	$const4	3.1415927		%read{2,125} %write{2147483647,-1}
const	float	$const5	180		%read{2,125} %write{2147483647,-1}
temp	float	$tmp1	%read{3,3} %write{2,2}
const	float	$const7	1		%read{4,135} %write{2147483647,-1}
const	string	$const8	"__nondiffuse"		%read{6,6} %write{2147483647,-1}
const	string	$const9	"__nonspecular"		%read{7,7} %write{2147483647,-1}
const	string	$const10	"shader"		%read{8,127} %write{2147483647,-1}
const	int	$const11	0		%read{44,117} %write{2147483647,-1}
const	float	$const12	0		%read{8,132} %write{2147483647,-1}
temp	vector	$tmp2	%read{10,10} %write{9,9}
const	float	$const14	-1		%read{9,13} %write{2147483647,-1}
temp	vector	$tmp3	%read{12,12} %write{11,11}
temp	vector	$tmp4	%read{14,14} %write{13,13}
temp	float	$tmp5	%read{16,16} %write{15,15}
const	float	$const16	2		%read{15,36} %write{2147483647,-1}
temp	float	$tmp6	%read{18,18} %write{17,17}
temp	float	$tmp7	%read{19,19} %write{18,18}
temp	int	$tmp8	%read{24,24} %write{23,23}
temp	int	$tmp9	%read{27,27} %write{26,26}
temp	float	$tmp10	%read{31,31} %write{30,30}
temp	float	$tmp11	%read{32,32} %write{31,31}
temp	int	$tmp12	%read{35,35} %write{34,34}
temp	int	$tmp13	%read{37,37} %write{36,36}
temp	int	$tmp14	%read{40,40} %write{39,39}
temp	float	$tmp15	%read{43,43} %write{42,42}
temp	int	$tmp16	%read{45,45} %write{44,44}
temp	float	$tmp17	%read{51,51} %write{50,50}
temp	float	$tmp18	%read{49,49} %write{47,47}
temp	float	$tmp19	%read{47,47} %write{46,46}
const	string	$const17	"clamp"		%read{48,48} %write{2147483647,-1}
temp	float	$tmp20	%read{50,50} %write{49,49}
temp	int	$tmp21	%read{53,53} %write{52,52}
temp	float	$tmp22	%read{57,57} %write{54,54}
temp	float	$tmp23	%read{56,56} %write{55,55}
temp	float	$tmp24	%read{57,57} %write{56,56}
temp	float	$tmp25	%read{61,61} %write{58,58}
temp	float	$tmp26	%read{60,60} %write{59,59}
temp	float	$tmp27	%read{61,61} %write{60,60}
temp	float	$tmp28	%read{77,77} %write{70,70}
temp	float	$tmp29	%read{70,70} %write{65,65}
temp	float	$tmp30	%read{65,65} %write{62,62}
temp	float	$tmp31	%read{64,64} %write{63,63}
temp	float	$tmp32	%read{65,65} %write{64,64}
temp	float	$tmp33	%read{70,70} %write{69,69}
temp	float	$tmp34	%read{69,69} %write{66,66}
temp	float	$tmp35	%read{68,68} %write{67,67}
temp	float	$tmp36	%read{69,69} %write{68,68}
temp	float	$tmp37	%read{76,76} %write{75,75}
temp	float	$tmp38	%read{75,75} %write{72,72}
temp	float	$tmp39	%read{72,72} %write{71,71}
temp	float	$tmp40	%read{75,75} %write{74,74}
temp	float	$tmp41	%read{74,74} %write{73,73}
temp	float	$tmp42	%read{77,77} %write{76,76}
temp	float	$tmp43	%read{78,78} %write{77,77}
temp	float	$tmp44	%read{94,94} %write{87,87}
temp	float	$tmp45	%read{87,87} %write{82,82}
temp	float	$tmp46	%read{82,82} %write{79,79}
temp	float	$tmp47	%read{81,81} %write{80,80}
temp	float	$tmp48	%read{82,82} %write{81,81}
temp	float	$tmp49	%read{87,87} %write{86,86}
temp	float	$tmp50	%read{86,86} %write{83,83}
temp	float	$tmp51	%read{85,85} %write{84,84}
temp	float	$tmp52	%read{86,86} %write{85,85}
temp	float	$tmp53	%read{93,93} %write{92,92}
temp	float	$tmp54	%read{92,92} %write{89,89}
temp	float	$tmp55	%read{89,89} %write{88,88}
temp	float	$tmp56	%read{92,92} %write{91,91}
temp	float	$tmp57	%read{91,91} %write{90,90}
temp	float	$tmp58	%read{94,94} %write{93,93}
temp	float	$tmp59	%read{95,95} %write{94,94}
temp	float	$tmp60	%read{97,97} %write{96,96}
temp	int	$tmp61	%read{100,100} %write{99,99}
temp	int	$tmp62	%read{101,105} %write{100,104}
const	string	$const18	""		%read{102,134} %write{2147483647,-1}
temp	int	$tmp63	%read{103,103} %write{102,102}
temp	int	$tmp64	%read{104,104} %write{103,103}
temp	normal	$tmp65	%read{109,109} %write{106,106} %derivs
const	string	$const19	"traceset"		%read{109,134} %write{2147483647,-1}
const	string	$const20	"coneangle"		%read{109,134} %write{2147483647,-1}
const	float	$const21	1.5707964		%read{109,109} %write{2147483647,-1}
const	string	$const22	"samples"		%read{109,134} %write{2147483647,-1}
temp	int	$tmp66	%read{109,109} %write{107,107}
const	string	$const23	"maxerror"		%read{109,109} %write{2147483647,-1}
const	string	$const24	"maxpixeldist"		%read{109,109} %write{2147483647,-1}
const	string	$const25	"maxdist"		%read{109,109} %write{2147483647,-1}
const	string	$const26	"bias"		%read{109,109} %write{2147483647,-1}
const	string	$const27	"falloff"		%read{109,109} %write{2147483647,-1}
const	string	$const28	"falloffmode"		%read{109,109} %write{2147483647,-1}
temp	int	$tmp67	%read{109,109} %write{108,108}
temp	float	$tmp68	%read{111,111} %write{110,110}
temp	float	$tmp69	%read{113,113} %write{112,112}
temp	float	$tmp70	%read{117,131} %write{114,114}
const	string	$const29	"computeRtShadowing"		%read{115,115} %write{2147483647,-1}
temp	int	$tmp71	%read{118,118} %write{117,117}
temp	int	$tmp72	%read{120,120} %write{119,119}
temp	vector	$tmp73	%read{122,122} %write{121,121} %derivs
const	float	$const30	1e+010		%read{122,122} %write{2147483647,-1}
temp	vector	$tmp74	%read{123,123} %write{122,122} %derivs
temp	float	$tmp75	%read{126,126} %write{125,125}
temp	float	$tmp76	%read{129,129} %write{128,128}
temp	float	$tmp77	%read{130,130} %write{129,129}
temp	int	$tmp78	%read{134,134} %write{133,133}
code useRayTraceShadows
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:7
# 	float	shadowRays = 1,
	assign		useRayTraceShadows useDepthMapShadows 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl"} %line{7} %argrw{"wr"}
code coneAngle
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:10
# 	float penumbraAngle = 0,
	functioncall	$const3 4 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl"} %line{10} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:88
# // Basic math
	div		$tmp1 $const4 $const5 	%filename{"D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h"} %line{88} %argrw{"wrr"}
	mul		coneAngle $const2 $tmp1 	%argrw{"wrr"}
code __nondiffuse
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:39
# 	string lightid = "")
	sub		__nondiffuse $const7 emitDiffuse 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl"} %line{39} %argrw{"wrr"}
code __nonspecular
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:39
# 	string lightid = "")
	sub		__nonspecular $const7 emitSpecular 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl"} %line{39} %argrw{"wrr"}
code ___main___
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:42
# 	setmessage ("__nonspecular", __nonspecular);
	setmessage	$const8 __nondiffuse 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl"} %line{42} %argrw{"rr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:43
# 	
	setmessage	$const9 __nonspecular 	%line{43} %argrw{"rr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:45
# 	vector A = normalize( vector ("shader",0,0,-1) );
	point		from $const10 $const12 $const12 $const12 	%line{45} %argrw{"wrrrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:46
# 	vector xaxis = normalize( vector ("shader",0,1,0) );
	vector		$tmp2 $const10 $const12 $const12 $const14 	%line{46} %argrw{"wrrrr"}
	normalize	A $tmp2 	%argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:47
# 	vector yaxis = normalize( vector ("shader",-1,0,0) );
	vector		$tmp3 $const10 $const12 $const7 $const12 	%line{47} %argrw{"wrrrr"}
	normalize	xaxis $tmp3 	%argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:48
# 	float coslimit = cos(coneAngle / 2);
	vector		$tmp4 $const10 $const14 $const12 $const12 	%line{48} %argrw{"wrrrr"}
	normalize	yaxis $tmp4 	%argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:49
# 	float cospen = cos((coneAngle / 2) + penumbraAngle);
	div		$tmp5 coneAngle $const16 	%line{49} %argrw{"wrr"}
	cos		coslimit $tmp5 	%argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:50
# 	float low = min(cospen, coslimit);
	div		$tmp6 coneAngle $const16 	%line{50} %argrw{"wrr"}
	add		$tmp7 $tmp6 penumbraAngle 	%argrw{"wrr"}
	cos		cospen $tmp7 	%argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:51
# 	float high = max(cospen, coslimit);
	min		low cospen coslimit 	%line{51} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:52
#   
	max		high cospen coslimit 	%line{52} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:54
# 	if( penumbraAngle > 0.0 )
	div		max_angle coneAngle $const16 	%line{54} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:55
# 		max_angle += penumbraAngle;
	gt		$tmp8 penumbraAngle $const12 	%line{55} %argrw{"wrr"}
	if		$tmp8 26 26 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:56
# 		
	add		max_angle max_angle penumbraAngle 	%line{56} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:123
# }
	emit		$tmp9 from A max_angle 	%line{123} %argrw{"wrrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:58
# 	{
	if		$tmp9 138 138 	%line{58} %argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:60
# 		float distance = sqrt( distance_squared );
	dot		___300_distance_squared L L 	%line{60} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:61
# 		float cosangle = -dot(L,A) / distance;
	sqrt		___300_distance ___300_distance_squared 	%line{61} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:62
# 
	dot		$tmp10 L A 	%line{62} %argrw{"wrr"}
	neg		$tmp11 $tmp10 	%argrw{"wr"}
	div		___300_cosangle $tmp11 ___300_distance 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:64
# 		
	assign		___300_atten $const7 	%line{64} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:66
# 			/* do nothing */ ;
	eq		$tmp12 decayRate $const12 	%line{66} %argrw{"wrr"}
	if		$tmp12 36 44 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:68
# 			atten /= distance_squared;
	eq		$tmp13 decayRate $const16 	%line{68} %argrw{"wrr"}
	if		$tmp13 39 44 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:69
# 		else if( decayRate == 1.0 )
	div		___300_atten ___300_atten ___300_distance_squared 	%line{69} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:70
# 			atten /= distance;
	eq		$tmp14 decayRate $const7 	%line{70} %argrw{"wrr"}
	if		$tmp14 42 44 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:71
# 		else
	div		___300_atten ___300_atten ___300_distance 	%line{71} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:73
# 
	pow		$tmp15 ___300_distance decayRate 	%line{73} %argrw{"wrr"}
	div		___300_atten ___300_atten $tmp15 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:75
# 			atten *= clamp(pow(cosangle, 1 + dropoff),0,1);
	gt		$tmp16 dropoff $const11 	%line{75} %argrw{"wrr"}
	if		$tmp16 52 52 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:76
# 
	add		$tmp19 $const7 dropoff 	%line{76} %argrw{"wrr"}
	pow		$tmp18 ___300_cosangle $tmp19 	%argrw{"wrr"}
	functioncall	$const17 51 	%argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:144
#     float  name (float x, float y) BUILTIN;
	min		$tmp20 $tmp18 $const7 	%filename{"D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h"} %line{144} %argrw{"wrr"}
	max		$tmp17 $tmp20 $const12 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:76
# 
	mul		___300_atten ___300_atten $tmp17 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl"} %line{76} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:78
# 		{
	gt		$tmp21 barnDoors $const11 	%line{78} %argrw{"wrr"}
	if		$tmp21 96 96 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:80
# 			float angley = atan2(dot(L,yaxis), -dot(L,A));
	dot		$tmp22 L xaxis 	%line{80} %argrw{"wrr"}
	dot		$tmp23 L A 	%argrw{"wrr"}
	neg		$tmp24 $tmp23 	%argrw{"wr"}
	atan2		___301_anglex $tmp22 $tmp24 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:81
# 
	dot		$tmp25 L yaxis 	%line{81} %argrw{"wrr"}
	dot		$tmp26 L A 	%argrw{"wrr"}
	neg		$tmp27 $tmp26 	%argrw{"wr"}
	atan2		___301_angley $tmp25 $tmp27 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:83
# 					max(-bottomBarnDoor, -bottomBarnDoor - penumbraAngle), anglex) * 
	neg		$tmp30 bottomBarnDoor 	%line{83} %argrw{"wr"}
	neg		$tmp31 bottomBarnDoor 	%argrw{"wr"}
	sub		$tmp32 $tmp31 penumbraAngle 	%argrw{"wrr"}
	min		$tmp29 $tmp30 $tmp32 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:84
# 				(1 - smoothstep(min(topBarnDoor, topBarnDoor + penumbraAngle), 
	neg		$tmp34 bottomBarnDoor 	%line{84} %argrw{"wr"}
	neg		$tmp35 bottomBarnDoor 	%argrw{"wr"}
	sub		$tmp36 $tmp35 penumbraAngle 	%argrw{"wrr"}
	max		$tmp33 $tmp34 $tmp36 	%argrw{"wrr"}
	smoothstep	$tmp28 $tmp29 $tmp33 ___301_anglex 	%argrw{"wrrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:85
# 								max(topBarnDoor, topBarnDoor + penumbraAngle), anglex));
	add		$tmp39 topBarnDoor penumbraAngle 	%line{85} %argrw{"wrr"}
	min		$tmp38 topBarnDoor $tmp39 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:86
# 			atten *= smoothstep(min(-rightBarnDoor, -rightBarnDoor - penumbraAngle),
	add		$tmp41 topBarnDoor penumbraAngle 	%line{86} %argrw{"wrr"}
	max		$tmp40 topBarnDoor $tmp41 	%argrw{"wrr"}
	smoothstep	$tmp37 $tmp38 $tmp40 ___301_anglex 	%argrw{"wrrr"}
	sub		$tmp42 $const7 $tmp37 	%argrw{"wrr"}
	mul		$tmp43 $tmp28 $tmp42 	%argrw{"wrr"}
	mul		___300_atten ___300_atten $tmp43 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:87
# 					max(-rightBarnDoor, -rightBarnDoor - penumbraAngle), angley) * 
	neg		$tmp46 rightBarnDoor 	%line{87} %argrw{"wr"}
	neg		$tmp47 rightBarnDoor 	%argrw{"wr"}
	sub		$tmp48 $tmp47 penumbraAngle 	%argrw{"wrr"}
	min		$tmp45 $tmp46 $tmp48 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:88
# 				(1 - smoothstep(min(leftBarnDoor, leftBarnDoor + penumbraAngle), 
	neg		$tmp50 rightBarnDoor 	%line{88} %argrw{"wr"}
	neg		$tmp51 rightBarnDoor 	%argrw{"wr"}
	sub		$tmp52 $tmp51 penumbraAngle 	%argrw{"wrr"}
	max		$tmp49 $tmp50 $tmp52 	%argrw{"wrr"}
	smoothstep	$tmp44 $tmp45 $tmp49 ___301_angley 	%argrw{"wrrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:89
# 								max(leftBarnDoor, leftBarnDoor + penumbraAngle), angley));
	add		$tmp55 leftBarnDoor penumbraAngle 	%line{89} %argrw{"wrr"}
	min		$tmp54 leftBarnDoor $tmp55 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:90
# 		}
	add		$tmp57 leftBarnDoor penumbraAngle 	%line{90} %argrw{"wrr"}
	max		$tmp56 leftBarnDoor $tmp57 	%argrw{"wrr"}
	smoothstep	$tmp53 $tmp54 $tmp56 ___301_angley 	%argrw{"wrrr"}
	sub		$tmp58 $const7 $tmp53 	%argrw{"wrr"}
	mul		$tmp59 $tmp44 $tmp58 	%argrw{"wrr"}
	mul		___300_atten ___300_atten $tmp59 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:93
# 
	smoothstep	$tmp60 low high ___300_cosangle 	%line{93} %argrw{"wrrr"}
	mul		___300_atten ___300_atten $tmp60 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:98
# 
	assign		___300_lcolor _color 	%line{98} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:100
# 		{
	gt		$tmp61 gelatoUseOcclusion $const11 	%line{100} %argrw{"wrr"}
	neq		$tmp62 $tmp61 $const11 	%argrw{"wrr"}
	if		$tmp62 105 105 	%argrw{"r"}
	neq		$tmp63 gelatoOcclusionGeometrySet $const18 	%argrw{"wrr"}
	neq		$tmp64 $tmp63 $const11 	%argrw{"wrr"}
	assign		$tmp62 $tmp64 	%argrw{"wr"}
	if		$tmp62 112 112 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:102
# 				"traceset", gelatoOcclusionGeometrySet, "coneangle", M_PI_2,
	normalize	$tmp65 N 	%line{102} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:104
# 				"maxpixeldist", gelatoOcclusionMaxPixelDist,
	assign		$tmp66 gelatoOcclusionSamples 	%line{104} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:108
# 				"filename", sdbname, "filemode", sdbmode,
	assign		$tmp67 gelatoOcclusionFalloffMode 	%line{108} %argrw{"wr"}
	occlusion	___302_a Ps $tmp65 $const19 gelatoOcclusionGeometrySet $const20 $const21 $const22 $tmp66 $const23 gelatoOcclusionMaxError $const24 gelatoOcclusionMaxPixelDist $const25 gelatoOcclusionMaxHitDist $const26 gelatoOcclusionBias $const27 gelatoOcclusionFalloff $const28 $tmp67 	%argrw{"wrrrrrrrrrrrrrrrrrrrr"} %argderivs{1,2}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:109
# 				"filespace", sdbfilespace*/) ;
	sub		$tmp68 $const7 ___302_a 	%line{109} %argrw{"wrr"}
	mul		___300_atten ___300_atten $tmp68 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:114
# 
	mul		$tmp69 ___300_atten intensity 	%line{114} %argrw{"wrr"}
	mul		Cl $tmp69 ___300_lcolor 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:119
# 			0, 
	mul		$tmp70 useRayTraceShadows shadowRays 	%line{119} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_spotLight.osl:122
# 	}
	functioncall	$const29 138 	%line{122} %argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\light_utils.h:70
# 	color lcolor = i_Cl;
	assign		___296_lcolor Cl 	%filename{"D:/xrt.git\\src\\osl\\shaders\\light_utils.h"} %line{70} %argrw{"wr"}
# D:/xrt.git\\src\\osl\\shaders\\light_utils.h:72
# 	if( i_rtShadSamples != 0 )
	neq		$tmp71 $tmp70 $const11 	%line{72} %argrw{"wrr"}
	if		$tmp71 137 137 	%argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\light_utils.h:77
# 		if( i_rtShadLightIsDirectional == 1.0 )
	eq		$tmp72 $const12 $const7 	%line{77} %argrw{"wrr"}
	if		$tmp72 127 131 	%argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\light_utils.h:79
# 			to = Ps + (vector ("shader",0,0,1)) * 1e10;
	vector		$tmp73 $const10 $const12 $const12 $const7 	%line{79} %argrw{"wrrrr"}
	mul		$tmp74 $tmp73 $const30 	%argrw{"wrr"}
	add		___297_to Ps $tmp74 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\light_utils.h:80
# 			angle = radians(i_rtShadLightRadiusOrAngle);
	functioncall	$const3 127 	%line{80} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:88
# //   notice, this list of conditions and the following disclaimer.
	div		$tmp75 $const4 $const5 	%filename{"D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h"} %line{88} %argrw{"wrr"}
	mul		___297_angle lightRadius $tmp75 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\light_utils.h:84
# 			to = point ("shader",0,0,0);
	point		___297_to $const10 $const12 $const12 $const12 	%filename{"D:/xrt.git\\src\\osl\\shaders\\light_utils.h"} %line{84} %argrw{"wrrrr"}
# D:/xrt.git\\src\\osl\\shaders\\light_utils.h:85
# 			angle = atan( i_rtShadLightRadiusOrAngle / distance( Ps, to ) );
	distance	$tmp76 Ps ___297_to 	%line{85} %argrw{"wrr"}
	div		$tmp77 lightRadius $tmp76 	%argrw{"wrr"}
	atan		___297_angle $tmp77 	%argrw{"wr"}
# D:/xrt.git\\src\\osl\\shaders\\light_utils.h:88
# 		float samples = i_rtShadSamples;
	assign		___297_samples $tmp70 	%line{88} %argrw{"wr"}
# D:/xrt.git\\src\\osl\\shaders\\light_utils.h:90
# 		color Ctransmission = 0.0;
	assign		___297_Ctransmission $const12 	%line{90} %argrw{"wr"}
# D:/xrt.git\\src\\osl\\shaders\\light_utils.h:95
# 				"samples", (int)samples,
	assign		$tmp78 ___297_samples 	%line{95} %argrw{"wr"}
# D:/xrt.git\\src\\osl\\shaders\\light_utils.h:97
# 				"traceset", i_rtShadSubset);
	transmission	___297_Ctransmission Ps ___297_to $const22 $tmp78 $const20 ___297_angle $const19 $const18 	%line{97} %argrw{"wrrrrrrrr"} %argderivs{1,2}
# D:/xrt.git\\src\\osl\\shaders\\light_utils.h:99
# 		color Cshad = 1.0 - Ctransmission;
	sub		___297_Cshad $const7 ___297_Ctransmission 	%line{99} %argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\light_utils.h:101
# 		lcolor = mix( i_Cl, i_shadowColor, Cshad );
	mix		___296_lcolor Cl shadowColor ___297_Cshad 	%line{101} %argrw{"wrrr"}
# D:/xrt.git\\src\\osl\\shaders\\light_utils.h:104
# 	return lcolor;
	assign		Cl ___296_lcolor 	%line{104} %argrw{"wr"}
	end
