OpenShadingLanguage 1.01
# Compiled by oslc 1.6.2
surface maya_envSphere_pre
param	float[2]	shearUV	0 0		%read{25,29} %write{2147483647,-1}
param	float	flip	0		%read{32,32} %write{2147483647,-1}
param	normal	normalCamera	0 0 0		%read{3,3} %write{0,0} %initexpr
param	matrix	placementMatrix	0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0		%read{11,11} %write{2147483647,-1}
oparam	float[2]	uvCoord	0 0		%read{2147483647,-1} %write{1,38} %initexpr
global	vector	I	%read{5,8} %write{2147483647,-1}
global	normal	N	%read{0,0} %write{2147483647,-1}
global	float	u	%read{1,1} %write{2147483647,-1}
global	float	v	%read{2,2} %write{2147483647,-1}
local	vector	R	%read{10,14} %write{8,11}
local	float	px	%read{15,18} %write{12,12}
local	float	py	%read{22,22} %write{13,13}
local	float	pz	%read{15,19} %write{14,14}
local	float	signed_s	%read{24,30} %write{17,17}
local	float	signed_t	%read{26,28} %write{23,23}
local	float	ss	%read{34,37} %write{27,35}
local	float	tt	%read{35,38} %write{31,36}
local	float	___314_tmp	%read{36,36} %write{34,34}
const	int	$const1	0		%read{1,37} %write{2147483647,-1}
const	int	$const2	1		%read{2,38} %write{2147483647,-1}
temp	normal	$tmp1	%read{5,7} %write{3,3}
const	string	$const3	"reflect"		%read{4,4} %write{2147483647,-1}
const	int	$const4	2		%read{14,14} %write{2147483647,-1}
temp	float	$tmp2	%read{6,6} %write{5,5}
temp	float	$tmp3	%read{7,7} %write{6,6}
const	float	$const5	2		%read{6,16} %write{2147483647,-1}
temp	vector	$tmp4	%read{8,8} %write{7,7}
const	string	$const6	"world"		%read{10,10} %write{2147483647,-1}
const	string	$const7	"transform"		%read{9,9} %write{2147483647,-1}
const	string	$const8	"common"		%read{10,10} %write{2147483647,-1}
temp	float	$tmp5	%read{17,17} %write{15,15}
const	float	$const9	3.1415927		%read{16,23} %write{2147483647,-1}
temp	float	$tmp6	%read{17,17} %write{16,16}
temp	float	$tmp7	%read{23,23} %write{22,22}
temp	float	$tmp8	%read{22,22} %write{21,21}
temp	float	$tmp9	%read{20,20} %write{18,18}
temp	float	$tmp10	%read{20,20} %write{19,19}
temp	float	$tmp11	%read{21,21} %write{20,20}
const	float	$const10	0.5		%read{24,28} %write{2147483647,-1}
temp	float	$tmp12	%read{27,27} %write{24,24}
temp	float	$tmp13	%read{26,26} %write{25,25}
temp	float	$tmp14	%read{27,27} %write{26,26}
temp	float	$tmp15	%read{31,31} %write{28,28}
temp	float	$tmp16	%read{30,30} %write{29,29}
temp	float	$tmp17	%read{31,31} %write{30,30}
temp	int	$tmp18	%read{33,33} %write{32,32}
code normalCamera
# D:\\xrt.git\\src\\osl\\shaders\\maya_envSphere_pre.osl:9
# 	matrix placementMatrix = matrix ("shader", 1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),
	assign		normalCamera N 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\maya_envSphere_pre.osl"} %line{9} %argrw{"wr"}
code uvCoord
# D:\\xrt.git\\src\\osl\\shaders\\maya_envSphere_pre.osl:13
# 
	aassign		uvCoord $const1 u 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\maya_envSphere_pre.osl"} %line{13} %argrw{"wrr"}
	aassign		uvCoord $const2 v 	%argrw{"wrr"}
code ___main___
# D:\\xrt.git\\src\\osl\\shaders\\maya_envSphere_pre.osl:17
# 	R = transform( "world", R );
	normalize	$tmp1 normalCamera 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\maya_envSphere_pre.osl"} %line{17} %argrw{"wr"}
	functioncall	$const3 9 	%argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:198
#     vector d = b - a;
	dot		$tmp2 $tmp1 I 	%filename{"D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h"} %line{198} %argrw{"wrr"}
	mul		$tmp3 $const5 $tmp2 	%argrw{"wrr"}
	mul		$tmp4 $tmp3 $tmp1 	%argrw{"wrr"}
	sub		R I $tmp4 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_envSphere_pre.osl:18
# 	R = transform( placementMatrix, R );
	functioncall	$const7 11 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\maya_envSphere_pre.osl"} %line{18} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:248
#     }
	transformv	R $const8 $const6 R 	%filename{"D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h"} %line{248} %argrw{"wrrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_envSphere_pre.osl:19
# 
	transformv	R placementMatrix R 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\maya_envSphere_pre.osl"} %line{19} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_envSphere_pre.osl:21
# 	float py = R[1];
	compref		px R $const1 	%line{21} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_envSphere_pre.osl:22
# 	float pz = R[2];
	compref		py R $const2 	%line{22} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_envSphere_pre.osl:23
# 
	compref		pz R $const4 	%line{23} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_envSphere_pre.osl:25
# 	float signed_t = atan2( py, sqrt( px*px + pz*pz ) ) / M_PI;
	atan2		$tmp5 px pz 	%line{25} %argrw{"wrr"}
	mul		$tmp6 $const5 $const9 	%argrw{"wrr"}
	div		signed_s $tmp5 $tmp6 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_envSphere_pre.osl:26
# 
	mul		$tmp9 px px 	%line{26} %argrw{"wrr"}
	mul		$tmp10 pz pz 	%argrw{"wrr"}
	add		$tmp11 $tmp9 $tmp10 	%argrw{"wrr"}
	sqrt		$tmp8 $tmp11 	%argrw{"wr"}
	atan2		$tmp7 py $tmp8 	%argrw{"wrr"}
	div		signed_t $tmp7 $const9 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_envSphere_pre.osl:28
# 	float tt = signed_t + 0.5 + shearUV[1] * signed_s;
	add		$tmp12 signed_s $const10 	%line{28} %argrw{"wrr"}
	aref		$tmp13 shearUV $const1 	%argrw{"wrr"}
	mul		$tmp14 $tmp13 signed_t 	%argrw{"wrr"}
	add		ss $tmp12 $tmp14 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_envSphere_pre.osl:29
# 
	add		$tmp15 signed_t $const10 	%line{29} %argrw{"wrr"}
	aref		$tmp16 shearUV $const2 	%argrw{"wrr"}
	mul		$tmp17 $tmp16 signed_s 	%argrw{"wrr"}
	add		tt $tmp15 $tmp17 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_envSphere_pre.osl:31
# 	{
	neq		$tmp18 flip $const1 	%line{31} %argrw{"wrr"}
	if		$tmp18 37 37 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_envSphere_pre.osl:33
# 		ss = tt;
	assign		___314_tmp ss 	%line{33} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_envSphere_pre.osl:34
# 		tt = tmp;
	assign		ss tt 	%line{34} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_envSphere_pre.osl:35
# 	}
	assign		tt ___314_tmp 	%line{35} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_envSphere_pre.osl:37
# 	uvCoord[1] = tt;
	aassign		uvCoord $const1 ss 	%line{37} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_envSphere_pre.osl:38
# }
	aassign		uvCoord $const2 tt 	%line{38} %argrw{"wrr"}
	end
