OpenShadingLanguage 1.01
# Compiled by oslc 1.6.2
light maya_ambientLight%emit{0}
param	color	_color	1 1 1		%read{24,24} %write{2147483647,-1}
param	float	intensity	1		%read{23,23} %write{2147483647,-1}
param	float	ambientShade	0.44999999		%read{17,17} %write{2147483647,-1}
param	float	__nondiffuse	1		%read{2147483647,-1} %write{2147483647,-1}
param	float	__nonspecular	1		%read{2147483647,-1} %write{2147483647,-1}
param	float	__ambient	1		%read{2147483647,-1} %write{2147483647,-1}
global	vector	I	%read{2,2} %write{2147483647,-1}
global	normal	N	%read{5,6} %write{2147483647,-1}
global	normal	Ng	%read{2,2} %write{2147483647,-1}
global	point	Ps	%read{10,10} %write{2147483647,-1}
global	color	Cl	%read{2147483647,-1} %write{24,24}
local	normal	Nf	%read{12,12} %write{8,8}
local	point	from	%read{10,10} %write{9,9}
local	vector	_L	%read{11,11} %write{10,10}
local	float	costheta	%read{14,23} %write{12,22}
local	float	theta	%read{18,19} %write{16,18}
temp	vector	$tmp1	%read{8,8} %write{5,6}
const	string	$const1	"faceforward"		%read{0,1} %write{2147483647,-1}
temp	float	$tmp2	%read{3,3} %write{2,2}
const	int	$const2	0		%read{3,3} %write{2147483647,-1}
temp	int	$tmp3	%read{4,4} %write{3,3}
const	string	$const3	"shader"		%read{9,9} %write{2147483647,-1}
const	float	$const4	0		%read{9,22} %write{2147483647,-1}
temp	vector	$tmp4	%read{12,12} %write{11,11}
const	float	$const6	1		%read{14,21} %write{2147483647,-1}
const	string	$const7	"clamp"		%read{13,20} %write{2147483647,-1}
temp	float	$tmp5	%read{15,15} %write{14,14}
temp	float	$tmp6	%read{18,18} %write{17,17}
const	float	$const8	0.66666597		%read{17,17} %write{2147483647,-1}
temp	float	$tmp7	%read{22,22} %write{21,21}
temp	float	$tmp8	%read{24,24} %write{23,23}
code ___main___
# D:\\xrt.git\\src\\osl\\shaders\\maya_ambientLight.osl:16
# 
	functioncall	$const1 8 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\maya_ambientLight.osl"} %line{16} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:196
# {
	functioncall	$const1 8 	%filename{"D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h"} %line{196} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:192
#     return (dot(I,Nref) > 0) ? -N : N;
	dot		$tmp2 I Ng 	%line{192} %argrw{"wrr"}
	gt		$tmp3 $tmp2 $const2 	%argrw{"wrr"}
	if		$tmp3 6 7 	%argrw{"r"}
	neg		$tmp1 N 	%argrw{"wr"}
	assign		$tmp1 N 	%argrw{"wr"}
	return
# D:\\xrt.git\\src\\osl\\shaders\\maya_ambientLight.osl:16
# 
	normalize	Nf $tmp1 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\maya_ambientLight.osl"} %line{16} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_ambientLight.osl:19
# 	vector _L = from-Ps;
	point		from $const3 $const4 $const4 $const4 	%line{19} %argrw{"wrrrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_ambientLight.osl:20
# 
	sub		_L from Ps 	%line{20} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_ambientLight.osl:28
# 	costheta = clamp( costheta, 0, 1 );
	normalize	$tmp4 _L 	%line{28} %argrw{"wr"}
	dot		costheta $tmp4 Nf 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_ambientLight.osl:29
# 	float theta = acos( costheta );
	functioncall	$const7 16 	%line{29} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:144
# PERCOMP1 (abs)
	min		$tmp5 costheta $const6 	%filename{"D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h"} %line{144} %argrw{"wrr"}
	max		costheta $tmp5 $const4 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_ambientLight.osl:30
# 	theta *= pow(ambientShade, 0.666666);
	acos		theta costheta 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\maya_ambientLight.osl"} %line{30} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_ambientLight.osl:31
# 	costheta = cos( theta );
	pow		$tmp6 ambientShade $const8 	%line{31} %argrw{"wrr"}
	mul		theta theta $tmp6 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_ambientLight.osl:32
# 	costheta = clamp( costheta, 0, 1 );
	cos		costheta theta 	%line{32} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_ambientLight.osl:33
# 
	functioncall	$const7 23 	%line{33} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:144
# PERCOMP1 (sqrt)
	min		$tmp7 costheta $const6 	%filename{"D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h"} %line{144} %argrw{"wrr"}
	max		costheta $tmp7 $const4 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_ambientLight.osl:35
# }
	mul		$tmp8 costheta intensity 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\maya_ambientLight.osl"} %line{35} %argrw{"wrr"}
	mul		Cl $tmp8 _color 	%argrw{"wrr"}
	end
