OpenShadingLanguage 1.01
# Compiled by oslc 1.6.2
light maya_pointLight%emit{1}
param	color	_color	1 1 1		%read{21,21} %write{2147483647,-1}
param	float	intensity	1		%read{8,8} %write{2147483647,-1}
param	float	decayRate	0		%read{10,18} %write{2147483647,-1}
param	color	shadowColor	0 0 0		%read{45,45} %write{2147483647,-1}
param	float	dmapFilterSize	1		%read{2147483647,-1} %write{2147483647,-1}
param	float	dmapBias	0.001		%read{2147483647,-1} %write{2147483647,-1}
param	float	useRayTraceShadows	0		%read{23,23} %write{2147483647,-1}
param	float	lightRadius	0		%read{35,38} %write{2147483647,-1}
param	float	shadowRays	1		%read{23,23} %write{2147483647,-1}
param	string	dmapName	""		%read{2147483647,-1} %write{2147483647,-1}
param	float	shadowBlur	0		%read{2147483647,-1} %write{2147483647,-1}
param	float	shadowSamples	16		%read{2147483647,-1} %write{2147483647,-1}
param	float	emitDiffuse	1		%read{0,0} %write{2147483647,-1}
param	float	emitSpecular	1		%read{1,1} %write{2147483647,-1}
oparam	float	__nondiffuse	0		%read{2,2} %write{0,0}
oparam	float	__nonspecular	0		%read{3,3} %write{1,1}
global	point	Ps	%read{32,43} %write{2147483647,-1} %derivs
global	vector	L	%read{7,7} %write{2147483647,-1}
global	color	Cl	%read{20,45} %write{8,46}
local	color	___296_lcolor	%read{46,46} %write{25,45}
local	point	___297_to	%read{37,43} %write{32,36} %derivs
local	float	___297_angle	%read{43,43} %write{35,39}
local	float	___297_samples	%read{42,42} %write{40,40}
local	color	___297_Ctransmission	%read{44,44} %write{41,43}
local	color	___297_Cshad	%read{45,45} %write{44,44}
local	point	from	%read{5,5} %write{4,4}
local	float	___300_distance_squared	%read{14,19} %write{7,7}
local	float	___300_attenuation	%read{20,20} %write{9,19}
local	color	___300_lcolor	%read{22,22} %write{21,21}
const	float	$const2	1		%read{0,44} %write{2147483647,-1}
const	string	$const3	"__nondiffuse"		%read{2,2} %write{2147483647,-1}
const	string	$const4	"__nonspecular"		%read{3,3} %write{2147483647,-1}
const	string	$const5	"shader"		%read{4,36} %write{2147483647,-1}
const	int	$const6	0		%read{26,26} %write{2147483647,-1}
const	float	$const7	0		%read{4,41} %write{2147483647,-1}
temp	int	$tmp1	%read{6,6} %write{5,5}
temp	int	$tmp2	%read{11,11} %write{10,10}
temp	int	$tmp3	%read{13,13} %write{12,12}
const	float	$const8	2		%read{15,15} %write{2147483647,-1}
temp	int	$tmp4	%read{16,16} %write{15,15}
const	float	$const9	0.5		%read{18,18} %write{2147483647,-1}
temp	float	$tmp5	%read{19,19} %write{18,18}
temp	float	$tmp6	%read{26,40} %write{23,23}
const	string	$const10	""		%read{43,43} %write{2147483647,-1}
const	string	$const11	"computeRtShadowing"		%read{24,24} %write{2147483647,-1}
temp	int	$tmp7	%read{27,27} %write{26,26}
temp	int	$tmp8	%read{29,29} %write{28,28}
temp	vector	$tmp9	%read{31,31} %write{30,30} %derivs
const	float	$const12	1e+010		%read{31,31} %write{2147483647,-1}
temp	vector	$tmp10	%read{32,32} %write{31,31} %derivs
const	string	$const13	"radians"		%read{33,33} %write{2147483647,-1}
const	float	$const14	3.1415927		%read{34,34} %write{2147483647,-1}
const	float	$const15	180		%read{34,34} %write{2147483647,-1}
temp	float	$tmp11	%read{35,35} %write{34,34}
temp	float	$tmp12	%read{38,38} %write{37,37}
temp	float	$tmp13	%read{39,39} %write{38,38}
const	string	$const16	"samples"		%read{43,43} %write{2147483647,-1}
temp	int	$tmp14	%read{43,43} %write{42,42}
const	string	$const17	"coneangle"		%read{43,43} %write{2147483647,-1}
const	string	$const18	"traceset"		%read{43,43} %write{2147483647,-1}
code ___main___
# D:\\xrt.git\\src\\osl\\shaders\\maya_pointLight.osl:27
# 	__nonspecular = 1 - emitSpecular;
	sub		__nondiffuse $const2 emitDiffuse 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\maya_pointLight.osl"} %line{27} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_pointLight.osl:28
# 	
	sub		__nonspecular $const2 emitSpecular 	%line{28} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_pointLight.osl:30
# 	setmessage("__nonspecular", __nonspecular);
	setmessage	$const3 __nondiffuse 	%line{30} %argrw{"rr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_pointLight.osl:31
# 	
	setmessage	$const4 __nonspecular 	%line{31} %argrw{"rr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_pointLight.osl:33
# 
	point		from $const5 $const7 $const7 $const7 	%line{33} %argrw{"wrrrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_pointLight.osl:70
# }
	emit		$tmp1 from 	%line{70} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_pointLight.osl:35
# 	{
	if		$tmp1 47 47 	%line{35} %argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_pointLight.osl:37
# 
	dot		___300_distance_squared L L 	%line{37} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_pointLight.osl:39
# 
	assign		Cl intensity 	%line{39} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_pointLight.osl:41
# 		if( decayRate == 0.0 )
	assign		___300_attenuation $const2 	%line{41} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_pointLight.osl:42
# 		{
	eq		$tmp2 decayRate $const7 	%line{42} %argrw{"wrr"}
	if		$tmp2 12 20 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_pointLight.osl:45
# 		{
	eq		$tmp3 decayRate $const2 	%line{45} %argrw{"wrr"}
	if		$tmp3 15 20 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_pointLight.osl:47
# 		}
	sqrt		___300_attenuation ___300_distance_squared 	%line{47} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_pointLight.osl:49
# 		{
	eq		$tmp4 decayRate $const8 	%line{49} %argrw{"wrr"}
	if		$tmp4 18 20 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_pointLight.osl:51
# 		}
	assign		___300_attenuation ___300_distance_squared 	%line{51} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_pointLight.osl:55
# 		}
	mul		$tmp5 $const9 decayRate 	%line{55} %argrw{"wrr"}
	pow		___300_attenuation ___300_distance_squared $tmp5 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_pointLight.osl:58
# 
	div		Cl Cl ___300_attenuation 	%line{58} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_pointLight.osl:63
# 
	assign		___300_lcolor _color 	%line{63} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_pointLight.osl:65
# 
	mul		Cl Cl ___300_lcolor 	%line{65} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_pointLight.osl:69
# 	}
	mul		$tmp6 useRayTraceShadows shadowRays 	%line{69} %argrw{"wrr"}
	functioncall	$const11 47 	%argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\light_utils.h:70
# #ifndef __light_utils_h
	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
# 
	neq		$tmp7 $tmp6 $const6 	%line{72} %argrw{"wrr"}
	if		$tmp7 46 46 	%argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\light_utils.h:77
# 	float i_shadowBlur,
	eq		$tmp8 $const7 $const2 	%line{77} %argrw{"wrr"}
	if		$tmp8 36 40 	%argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\light_utils.h:79
# 	float i_dmapFilterSize,
	vector		$tmp9 $const5 $const7 $const7 $const2 	%line{79} %argrw{"wrrrr"}
	mul		$tmp10 $tmp9 $const12 	%argrw{"wrr"}
	add		___297_to Ps $tmp10 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\light_utils.h:80
# 	float i_dmapBias
	functioncall	$const13 36 	%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		$tmp11 $const14 $const15 	%filename{"D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h"} %line{88} %argrw{"wrr"}
	mul		___297_angle lightRadius $tmp11 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\light_utils.h:84
# 			to = point ("shader",0,0,0);
	point		___297_to $const5 $const7 $const7 $const7 	%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	$tmp12 Ps ___297_to 	%line{85} %argrw{"wrr"}
	div		$tmp13 lightRadius $tmp12 	%argrw{"wrr"}
	atan		___297_angle $tmp13 	%argrw{"wr"}
# D:/xrt.git\\src\\osl\\shaders\\light_utils.h:88
# 		float samples = i_rtShadSamples;
	assign		___297_samples $tmp6 	%line{88} %argrw{"wr"}
# D:/xrt.git\\src\\osl\\shaders\\light_utils.h:90
# 		color Ctransmission = 0.0;
	assign		___297_Ctransmission $const7 	%line{90} %argrw{"wr"}
# D:/xrt.git\\src\\osl\\shaders\\light_utils.h:95
# 				"samples", (int)samples,
	assign		$tmp14 ___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 $const16 $tmp14 $const17 ___297_angle $const18 $const10 	%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 $const2 ___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
