OpenShadingLanguage 1.01
# Compiled by oslc 1.6.2
surface envsurf	%meta{string,description,"Look up environment map in the I direction"} 
param	float	Kd	1		%meta{string,descripton,"Overall brightness scale"}  %read{6,6} %write{2147483647,-1}
param	string	envname	""		%meta{string,description,"Environment map name"} %meta{string,UIlabel,"Environment name"} %meta{string,UItype,"environment"}  %read{0,5} %write{2147483647,-1}
param	float	blur	0		%meta{string,description,"Environment blur"} %meta{float,UImin,0} %meta{float,UIsoftmax,1}  %read{5,5} %write{2147483647,-1}
param	string	envspace	"world"		%meta{string,description,"Coordinate system for environment map lookup"} %meta{string,UIlabel,"Environment space"} %meta{string,UItype,"coordsys"}  %read{3,3} %write{2147483647,-1} %derivs
param	float	envrad	0		%meta{string,description,"Environment sphere radius for env map lookup"} %meta{float,UImin,0}  %read{2147483647,-1} %write{2147483647,-1}
global	vector	I	%read{3,3} %write{2147483647,-1} %derivs
global	color	C	%read{7,8} %write{7,8}
global	color	opacity	%read{8,8} %write{2147483647,-1}
local	vector	___291_D	%read{5,5} %write{4,4} %derivs
temp	int	$tmp1	%read{1,1} %write{0,0}
const	string	$const1	""		%read{0,0} %write{2147483647,-1}
temp	vector	$tmp2	%read{4,4} %write{3,3} %derivs
const	string	$const2	"transform"		%read{2,2} %write{2147483647,-1}
const	string	$const3	"common"		%read{3,3} %write{2147483647,-1}
temp	color	$tmp3	%read{6,6} %write{5,5}
const	string	$const4	"blur"		%read{5,5} %write{2147483647,-1}
temp	color	$tmp4	%read{7,7} %write{6,6}
code ___main___
# D:\\xrt.git\\src\\osl\\shaders\\envsurf.osl:71
# 		vector D = normalize(transform(envspace, I));
	neq		$tmp1 envname $const1 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\envsurf.osl"} %line{71} %argrw{"wrr"}
	if		$tmp1 8 8 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\envsurf.osl:72
#         C *= Kd * environment (envname, D, "blur", blur);
	functioncall	$const2 4 	%line{72} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:248
# float dot (vector a, vector b) BUILTIN;
	transformv	$tmp2 $const3 envspace I 	%filename{"D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h"} %line{248} %argrw{"wrrr"}
# D:\\xrt.git\\src\\osl\\shaders\\envsurf.osl:72
#         C *= Kd * environment (envname, D, "blur", blur);
	normalize	___291_D $tmp2 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\envsurf.osl"} %line{72} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\envsurf.osl:73
#     }
	environment	$tmp3 envname ___291_D $const4 blur 	%line{73} %argrw{"wrrrr"} %argderivs{2}
	mul		$tmp4 Kd $tmp3 	%argrw{"wrr"}
	mul		C C $tmp4 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\envsurf.osl:76
# }
	mul		C C opacity 	%line{76} %argrw{"wrr"}
	end
