OpenShadingLanguage 1.01
# Compiled by oslc 1.6.2
surface fakeglass	%meta{string,description,"Glass, fake (opacity-based) refractions"} 
param	float	Ka	0.2		%meta{string,description,"Ambient scaling"} %meta{float,UImin,0} %meta{float,UIsoftmax,1}  %read{104,104} %write{2147483647,-1}
param	float	Kd	0		%meta{string,description,"Diffuse scaling"} %meta{float,UImin,0} %meta{float,UIsoftmax,1}  %read{122,122} %write{2147483647,-1}
param	float	Ks	0.5		%meta{string,description,"Specular scaling"} %meta{float,UImin,0} %meta{float,UIsoftmax,1}  %read{153,153} %write{2147483647,-1}
param	float	roughness	0.050000001		%meta{string,description,"Surface roughness (specular highlight size)"} %meta{float,UImin,0} %meta{float,UImax,1} %meta{string,UIenabler,"Ks"}  %read{146,146} %write{2147483647,-1}
param	float	Kr	1		%meta{string,description,"Reflectivity / Environment scaling"} %meta{string,UIlabel,"Reflectivity"} %meta{float,UImin,0} %meta{float,UIsoftmax,1} %meta{string,UIgroupbegin,"Reflections"}  %read{71,71} %write{2147483647,-1}
param	float	reflblur	0		%meta{string,description,"Reflection environment blur"} %meta{string,UIenabler,"Kr"} %meta{float,UImin,0} %meta{float,UIsoftmax,1}  %read{91,100} %write{2147483647,-1}
param	string	envname	""		%meta{string,description,"Map or geometry set name for reflections"} %meta{string,UIlabel,"Environment name"} %meta{string,UIenabler,"Kr"} %meta{string,UItype,"environment"}  %read{79,100} %write{2147483647,-1}
param	string	envspace	"world"		%meta{string,description,"Coordinate system for environment map lookup"} %meta{string,UIlabel,"Environment space"} %meta{string,UIenabler,"Kr"} %meta{string,UItype,"coordsys"}  %read{85,97} %write{2147483647,-1}
param	float	samples	1		%meta{string,description,"Reflection samples (for ray tracing)"} %meta{string,UIlabel,"Reflection samples"} %meta{string,UIenabler,"Kr"} %meta{string,UItype,"int"} %meta{float,UImin,1} %meta{float,UIsoftmax,64} %meta{string,UIgroupend,"Reflections"}  %read{99,99} %write{2147483647,-1}
param	float	Kt	1		%meta{string,description,"Refraction scaling"} %meta{float,UImin,0} %meta{float,UIsoftmax,1} %meta{string,UIgroupbegin,"Refraction"}  %read{72,72} %write{2147483647,-1}
param	float	eta	1.5		%meta{string,description,"Index of refraction"} %meta{float,UImin,1} %meta{float,UIsoftmax,2}  %read{10,10} %write{2147483647,-1}
param	color	transmitcolor	1 1 1		%meta{string,description,"Refraction tint color"} %meta{string,UIenabler,"Kt"} %meta{string,UIgroupend,"Refraction"}  %read{156,156} %write{2147483647,-1}
global	point	P	%read{88,133} %write{2147483647,-1} %derivs
global	vector	I	%read{3,9} %write{2147483647,-1} %derivs
global	normal	N	%read{0,0} %write{2147483647,-1} %derivs
global	normal	Ng	%read{3,3} %write{2147483647,-1}
global	color	C	%read{124,124} %write{155,155}
global	color	opacity	%read{2147483647,-1} %write{157,157}
global	vector	L	%read{115,138} %write{2147483647,-1}
global	color	Cl	%read{113,150} %write{2147483647,-1}
local	float	___216_IdotN	%read{53,61} %write{51,51}
local	float	___216_k	%read{57,62} %write{56,56}
local	float	___217_c	%read{13,41} %write{12,15}
local	float	___217_g	%read{27,41} %write{26,29}
local	float	___219_beta	%read{34,42} %write{30,30}
local	float	___219_F	%read{38,46} %write{36,45}
local	color	___278_C	%read{107,121} %write{106,120}
local	float	___279___nondiffuse	%read{107,120} %write{107,120}
local	int	___301_status	%read{94,94} %write{93,93}
local	color	___302_C	%read{102,102} %write{91,101}
local	point	___304_Pndc	%read{89,90} %write{88,88} %derivs
local	vector	___306_D	%read{2147483647,-1} %write{97,97}
local	color	___323_C	%read{131,152} %write{128,151}
local	float	___323_w	%read{142,143} %write{130,130}
local	float	___324_nonspec	%read{131,151} %write{131,151}
local	vector	___325_H	%read{131,151} %write{131,151}
local	normal	Nf	%read{12,144} %write{6,7} %derivs
local	vector	IN	%read{12,126} %write{9,9} %derivs
local	vector	Rfldir	%read{77,77} %write{20,20} %derivs
local	vector	Rfrdir	%read{2147483647,-1} %write{59,69}
local	float	kr	%read{47,125} %write{46,76}
local	float	kt	%read{72,156} %write{49,72}
local	color	Crefl	%read{125,125} %write{102,102}
temp	normal	$tmp1	%read{6,7} %write{0,0} %derivs
const	string	$const1	"faceforward"		%read{1,2} %write{2147483647,-1}
temp	float	$tmp2	%read{4,4} %write{3,3}
const	int	$const2	0		%read{4,134} %write{2147483647,-1}
temp	int	$tmp3	%read{5,5} %write{4,4}
const	int	$const3	1		%read{90,136} %write{2147483647,-1}
temp	float	$tmp4	%read{22,61} %write{10,10}
const	float	$const4	1		%read{10,157} %write{2147483647,-1}
const	string	$const5	"fresnel"		%read{11,11} %write{2147483647,-1}
temp	int	$tmp5	%read{14,14} %write{13,13}
const	string	$const6	"reflect"		%read{16,16} %write{2147483647,-1}
temp	float	$tmp6	%read{18,18} %write{17,17} %derivs
temp	float	$tmp7	%read{19,19} %write{18,18} %derivs
const	float	$const8	2		%read{18,18} %write{2147483647,-1}
temp	vector	$tmp8	%read{20,20} %write{19,19} %derivs
temp	float	$tmp9	%read{23,23} %write{22,22}
const	string	$const9	"sqr"		%read{21,43} %write{2147483647,-1}
temp	float	$tmp10	%read{24,24} %write{23,23}
temp	float	$tmp11	%read{26,26} %write{24,24}
temp	float	$tmp12	%read{26,26} %write{25,25}
const	float	$const10	0		%read{27,145} %write{2147483647,-1}
temp	int	$tmp13	%read{28,28} %write{27,27}
temp	float	$tmp14	%read{32,32} %write{31,31}
temp	float	$tmp15	%read{33,33} %write{32,32}
temp	float	$tmp16	%read{36,36} %write{33,33}
temp	float	$tmp17	%read{35,35} %write{34,34}
temp	float	$tmp18	%read{36,36} %write{35,35}
const	float	$const11	0.5		%read{40,129} %write{2147483647,-1}
temp	float	$tmp19	%read{39,39} %write{38,38}
temp	float	$tmp20	%read{40,40} %write{39,39}
temp	float	$tmp21	%read{45,45} %write{44,44}
temp	float	$tmp22	%read{42,42} %write{41,41}
temp	float	$tmp23	%read{44,44} %write{42,42}
temp	float	$tmp24	%read{48,48} %write{47,47}
temp	float	$tmp25	%read{49,49} %write{48,48}
const	string	$const12	"refract"		%read{50,50} %write{2147483647,-1}
temp	float	$tmp26	%read{55,55} %write{52,52}
temp	float	$tmp27	%read{54,54} %write{53,53}
temp	float	$tmp28	%read{55,55} %write{54,54}
temp	float	$tmp29	%read{56,56} %write{55,55}
temp	int	$tmp30	%read{58,58} %write{57,57}
const	vector	$const13	0 0 0		%read{59,69} %write{2147483647,-1}
temp	vector	$tmp31	%read{65,65} %write{60,60}
temp	float	$tmp32	%read{63,63} %write{61,61}
temp	float	$tmp33	%read{63,63} %write{62,62}
temp	float	$tmp34	%read{64,64} %write{63,63}
temp	vector	$tmp35	%read{65,65} %write{64,64}
temp	int	$tmp36	%read{74,74} %write{73,73}
temp	int	$tmp37	%read{75,75} %write{74,74}
temp	vector	$tmp38	%read{97,100} %write{77,77} %derivs
const	string	$const14	"Environment"		%read{78,78} %write{2147483647,-1}
temp	int	$tmp39	%read{80,84} %write{79,83}
const	string	$const15	""		%read{79,79} %write{2147483647,-1}
temp	int	$tmp40	%read{82,82} %write{81,81}
temp	int	$tmp41	%read{83,83} %write{82,82}
const	string	$const16	"NDC"		%read{85,88} %write{2147483647,-1}
temp	int	$tmp42	%read{86,86} %write{85,85}
const	string	$const17	"transform"		%read{87,96} %write{2147483647,-1}
const	string	$const18	"common"		%read{88,97} %write{2147483647,-1}
temp	float	$tmp43	%read{91,91} %write{89,89} %derivs
temp	float	$tmp44	%read{91,91} %write{90,90} %derivs
const	string	$const19	"blur"		%read{91,100} %write{2147483647,-1}
temp	int	$tmp45	%read{95,95} %write{94,94}
const	string	$const20	"istexture"		%read{92,92} %write{2147483647,-1}
temp	int	$tmp46	%read{2147483647,-1} %write{93,93}
const	string	$const21	"exists"		%read{93,93} %write{2147483647,-1}
const	string	$const22	"samples"		%read{100,100} %write{2147483647,-1}
temp	int	$tmp47	%read{100,100} %write{99,99}
const	string	$const23	"traceset"		%read{100,100} %write{2147483647,-1}
temp	color	$tmp48	%read{104,104} %write{103,103}
temp	color	$tmp49	%read{107,123} %write{104,120}
temp	color	$tmp50	%read{122,122} %write{121,121}
const	string	$const24	"diffuse"		%read{105,105} %write{2147483647,-1}
const	float	$const25	1.5707964		%read{108,133} %write{2147483647,-1}
temp	int	$tmp51	%read{107,120} %write{107,120}
temp	int	$tmp52	%read{2147483647,-1} %write{111,111}
const	string	$const26	"light"		%read{111,135} %write{2147483647,-1}
const	string	$const27	"__nondiffuse"		%read{111,111} %write{2147483647,-1}
temp	float	$tmp53	%read{113,113} %write{112,112}
temp	color	$tmp54	%read{119,119} %write{113,113}
temp	color	$tmp55	%read{119,119} %write{118,118}
temp	color	$tmp56	%read{118,118} %write{114,114}
temp	float	$tmp57	%read{117,117} %write{116,116}
temp	vector	$tmp58	%read{116,116} %write{115,115}
temp	color	$tmp59	%read{118,118} %write{117,117}
temp	color	$tmp60	%read{107,120} %write{107,120}
temp	color	$tmp61	%read{123,123} %write{122,122}
temp	color	$tmp62	%read{124,124} %write{123,123}
temp	color	$tmp63	%read{131,155} %write{124,151}
temp	color	$tmp64	%read{131,154} %write{125,151}
temp	color	$tmp65	%read{153,153} %write{152,152}
temp	vector	$tmp66	%read{131,151} %write{126,151}
const	string	$const28	"LocIllumGlossy"		%read{127,127} %write{2147483647,-1}
const	float	$const29	0.18000001		%read{130,130} %write{2147483647,-1}
temp	float	$tmp67	%read{130,130} %write{129,129}
temp	int	$tmp68	%read{131,151} %write{131,151}
temp	int	$tmp69	%read{2147483647,-1} %write{135,135}
const	string	$const30	"__nonspecular"		%read{135,135} %write{2147483647,-1}
temp	int	$tmp70	%read{137,137} %write{136,136}
temp	vector	$tmp71	%read{139,139} %write{138,138}
temp	vector	$tmp72	%read{140,140} %write{139,139}
temp	float	$tmp73	%read{149,149} %write{141,141}
temp	float	$tmp74	%read{149,149} %write{148,148}
const	float	$const31	0.72000003		%read{142,143} %write{2147483647,-1}
temp	float	$tmp75	%read{148,148} %write{142,142}
temp	float	$tmp76	%read{148,148} %write{143,143}
temp	float	$tmp77	%read{148,148} %write{147,147}
temp	float	$tmp78	%read{147,147} %write{145,145}
temp	float	$tmp79	%read{145,145} %write{144,144}
temp	float	$tmp80	%read{147,147} %write{146,146}
temp	float	$tmp81	%read{150,150} %write{149,149}
temp	color	$tmp82	%read{131,151} %write{131,151}
temp	color	$tmp83	%read{154,154} %write{153,153}
temp	color	$tmp84	%read{155,155} %write{154,154}
temp	color	$tmp85	%read{157,157} %write{156,156}
code ___main___
# D:\\xrt.git\\src\\osl\\shaders\\fakeglass.osl:113
#     vector IN = normalize (I);
	normalize	$tmp1 N 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\fakeglass.osl"} %line{113} %argrw{"wr"}
	functioncall	$const1 9 	%argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:196
# float  degrees (float x)  { return x*(180.0/M_PI); }
	functioncall	$const1 9 	%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 7 8 	%argrw{"r"}
	neg		Nf $tmp1 	%argrw{"wr"}
	assign		Nf $tmp1 	%argrw{"wr"}
	return
# D:\\xrt.git\\src\\osl\\shaders\\fakeglass.osl:114
# 
	normalize	IN I 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\fakeglass.osl"} %line{114} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\fakeglass.osl:119
#     kt = 1-kr;   // Physically incorrect, but portable
	div		$tmp4 $const4 eta 	%line{119} %argrw{"wrr"}
	functioncall	$const5 70 	%argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:209
# PERCOMP1 (sin)
	dot		___217_c IN Nf 	%filename{"D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h"} %line{209} %argrw{"wrr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:210
# PERCOMP1 (tan)
	lt		$tmp5 ___217_c $const2 	%line{210} %argrw{"wrr"}
	if		$tmp5 16 16 	%argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:211
# PERCOMP1 (acos)
	neg		___217_c ___217_c 	%line{211} %argrw{"wr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:212
# PERCOMP1 (asin)
	functioncall	$const6 21 	%line{212} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:198
# vector reflect (vector I, vector N) { return I - 2*dot(N,I)*N; }
	dot		$tmp6 Nf IN 	%line{198} %argrw{"wrr"}
	mul		$tmp7 $const8 $tmp6 	%argrw{"wrr"}
	mul		$tmp8 $tmp7 Nf 	%argrw{"wrr"}
	sub		Rfldir IN $tmp8 	%argrw{"wrr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:213
#     float g = 1.0 / sqr(eta) - 1.0 + c * c;
	functioncall	$const9 23 	%line{213} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:208
#     float sqr(float x) { return x*x; }
	mul		$tmp9 $tmp4 $tmp4 	%line{208} %argrw{"wrr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:213
#     float g = 1.0 / sqr(eta) - 1.0 + c * c;
	div		$tmp10 $const4 $tmp9 	%line{213} %argrw{"wrr"}
	sub		$tmp11 $tmp10 $const4 	%argrw{"wrr"}
	mul		$tmp12 ___217_c ___217_c 	%argrw{"wrr"}
	add		___217_g $tmp11 $tmp12 	%argrw{"wrr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:214
#     if (g >= 0.0) {
	ge		$tmp13 ___217_g $const10 	%line{214} %argrw{"wrr"}
	if		$tmp13 67 70 	%argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:215
#         g = sqrt (g);
	sqrt		___217_g ___217_g 	%line{215} %argrw{"wr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:216
#         float beta = g - c;
	sub		___219_beta ___217_g ___217_c 	%line{216} %argrw{"wrr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:217
#         float F = (c * (g+c) - 1.0) / (c * beta + 1.0);
	add		$tmp14 ___217_g ___217_c 	%line{217} %argrw{"wrr"}
	mul		$tmp15 ___217_c $tmp14 	%argrw{"wrr"}
	sub		$tmp16 $tmp15 $const4 	%argrw{"wrr"}
	mul		$tmp17 ___217_c ___219_beta 	%argrw{"wrr"}
	add		$tmp18 $tmp17 $const4 	%argrw{"wrr"}
	div		___219_F $tmp16 $tmp18 	%argrw{"wrr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:218
#         F = 0.5 * (1.0 + sqr(F));
	functioncall	$const9 39 	%line{218} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:208
#     float sqr(float x) { return x*x; }
	mul		$tmp19 ___219_F ___219_F 	%line{208} %argrw{"wrr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:218
#         F = 0.5 * (1.0 + sqr(F));
	add		$tmp20 $const4 $tmp19 	%line{218} %argrw{"wrr"}
	mul		___219_F $const11 $tmp20 	%argrw{"wrr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:219
#         F *= sqr (beta / (g+c));
	add		$tmp22 ___217_g ___217_c 	%line{219} %argrw{"wrr"}
	div		$tmp23 ___219_beta $tmp22 	%argrw{"wrr"}
	functioncall	$const9 45 	%argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:208
#     float sqr(float x) { return x*x; }
	mul		$tmp21 $tmp23 $tmp23 	%line{208} %argrw{"wrr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:219
#         F *= sqr (beta / (g+c));
	mul		___219_F ___219_F $tmp21 	%line{219} %argrw{"wrr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:220
#         Kr = F;
	assign		kr ___219_F 	%line{220} %argrw{"wr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:221
#         Kt = (1.0 - Kr) * eta*eta;
	sub		$tmp24 $const4 kr 	%line{221} %argrw{"wrr"}
	mul		$tmp25 $tmp24 $tmp4 	%argrw{"wrr"}
	mul		kt $tmp25 $tmp4 	%argrw{"wrr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:224
#         T = refract(I, N, eta);
	functioncall	$const12 67 	%line{224} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:200
#     float IdotN = dot (I, N);
	dot		___216_IdotN IN Nf 	%line{200} %argrw{"wrr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:201
#     float k = 1 - eta*eta * (1 - IdotN*IdotN);
	mul		$tmp26 $tmp4 $tmp4 	%line{201} %argrw{"wrr"}
	mul		$tmp27 ___216_IdotN ___216_IdotN 	%argrw{"wrr"}
	sub		$tmp28 $const4 $tmp27 	%argrw{"wrr"}
	mul		$tmp29 $tmp26 $tmp28 	%argrw{"wrr"}
	sub		___216_k $const4 $tmp29 	%argrw{"wrr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:202
#     return (k < 0) ? vector(0,0,0) : (eta*I - N * (eta*IdotN + sqrt(k)));
	lt		$tmp30 ___216_k $const2 	%line{202} %argrw{"wrr"}
	if		$tmp30 60 66 	%argrw{"r"}
	assign		Rfrdir $const13 	%argrw{"wr"}
	mul		$tmp31 $tmp4 IN 	%argrw{"wrr"}
	mul		$tmp32 $tmp4 ___216_IdotN 	%argrw{"wrr"}
	sqrt		$tmp33 ___216_k 	%argrw{"wr"}
	add		$tmp34 $tmp32 $tmp33 	%argrw{"wrr"}
	mul		$tmp35 Nf $tmp34 	%argrw{"wrr"}
	sub		Rfrdir $tmp31 $tmp35 	%argrw{"wrr"}
	return
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:227
#         Kr = 1.0;
	assign		kr $const4 	%line{227} %argrw{"wr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:228
#         Kt = 0.0;
	assign		kt $const10 	%line{228} %argrw{"wr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:229
#         T = vector (0,0,0);
	assign		Rfrdir $const13 	%line{229} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\fakeglass.osl:120
#     kr *= Kr;
	sub		kt $const4 kr 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\fakeglass.osl"} %line{120} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\fakeglass.osl:121
#     kt *= Kt;
	mul		kr kr Kr 	%line{121} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\fakeglass.osl:122
#     // Speedup -- at deep ray levels, reflection is unimportant
	mul		kt kt Kt 	%line{122} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\fakeglass.osl:124
# 	kr = 0;
	raylevel	$tmp36 	%line{124} %argrw{"w"}
	gt		$tmp37 $tmp36 $const2 	%argrw{"wrr"}
	if		$tmp37 77 77 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\fakeglass.osl:125
# 
	assign		kr $const2 	%line{125} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\fakeglass.osl:128
# 			       reflblur, samples, kr);
	normalize	$tmp38 Rfldir 	%line{128} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\fakeglass.osl:129
#     C = (C * (Ka*ambient() + Kd*diffuse(Nf)) +
	functioncall	$const14 103 	%line{129} %argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\material.h:205
# // We call it _thin_ because it includes a transmisison component to allow 
	neq		$tmp39 envname $const15 	%filename{"D:/xrt.git\\src\\osl\\shaders\\material.h"} %line{205} %argrw{"wrr"}
	if		$tmp39 84 84 	%argrw{"r"}
	gt		$tmp40 kr $const2 	%argrw{"wrr"}
	neq		$tmp41 $tmp40 $const2 	%argrw{"wrr"}
	assign		$tmp39 $tmp41 	%argrw{"wr"}
	if		$tmp39 101 102 	%argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\material.h:206
# // light from the _back_ of the surface to affect the appearance.  Typical
	eq		$tmp42 envspace $const16 	%line{206} %argrw{"wrr"}
	if		$tmp42 92 101 	%argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\material.h:208
# color MaterialThinPlastic (normal Nf, vector V, color basecolor, 
	functioncall	$const17 89 	%line{208} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:249
# #define M_E        2.7182818284590452        /* e (Euler's number) */
	transform	___304_Pndc $const18 $const16 P 	%filename{"D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h"} %line{249} %argrw{"wrrr"}
# D:/xrt.git\\src\\osl\\shaders\\material.h:209
#             C = texture (envname, Pndc[0], Pndc[1], "blur", blur);
	compref		$tmp43 ___304_Pndc $const2 	%filename{"D:/xrt.git\\src\\osl\\shaders\\material.h"} %line{209} %argrw{"wrr"}
	compref		$tmp44 ___304_Pndc $const3 	%argrw{"wrr"}
	texture		___302_C envname $tmp43 $tmp44 $const19 reflblur 	%argrw{"wrrrrr"} %argderivs{2,3}
# D:/xrt.git\\src\\osl\\shaders\\material.h:211
# 			if (istexture (envname)) {
	functioncall	$const20 95 	%line{211} %argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\material.h:169
# 	gettextureinfo (envname, "exists", status);
	gettextureinfo	$tmp46 envname $const21 ___301_status 	%line{169} %argrw{"wrrw"}
# D:/xrt.git\\src\\osl\\shaders\\material.h:170
# 	return status;
	assign		$tmp45 ___301_status 	%line{170} %argrw{"wr"}
# D:/xrt.git\\src\\osl\\shaders\\material.h:211
# 			if (istexture (envname)) {
	if		$tmp45 99 101 	%line{211} %argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\material.h:213
#                 vector D = transform (envspace, R);
	functioncall	$const17 98 	%line{213} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:248
# #define M_PI_2     1.5707963267948966        /* pi/2 */
	transformv	___306_D $const18 envspace $tmp38 	%filename{"D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h"} %line{248} %argrw{"wrrr"}
# D:/xrt.git\\src\\osl\\shaders\\material.h:214
#                 C = environment (envname, R, "blur", blur);
	environment	___302_C envname $tmp38 $const19 reflblur 	%filename{"D:/xrt.git\\src\\osl\\shaders\\material.h"} %line{214} %argrw{"wrrrr"} %argderivs{2}
# D:/xrt.git\\src\\osl\\shaders\\material.h:217
#                 C = trace (P, R, "blur", blur, "samples", (int)samples,
	assign		$tmp47 samples 	%line{217} %argrw{"wr"}
# D:/xrt.git\\src\\osl\\shaders\\material.h:218
#                              "traceset", envname);
	trace		___302_C P $tmp38 $const19 reflblur $const22 $tmp47 $const23 envname 	%line{218} %argrw{"wrrrrrrrr"} %argderivs{1,2}
# D:/xrt.git\\src\\osl\\shaders\\material.h:222
#     else C = 0;
	assign		___302_C $const2 	%line{222} %argrw{"wr"}
# D:/xrt.git\\src\\osl\\shaders\\material.h:223
#     return C;
	assign		Crefl ___302_C 	%line{223} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\fakeglass.osl:130
#          (kr*Crefl + Ks*LocIllumGlossy(Nf,-IN,roughness,0.5)));
	ambient		$tmp48 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\fakeglass.osl"} %line{130} %argrw{"w"}
	mul		$tmp49 Ka $tmp48 	%argrw{"wrr"}
	functioncall	$const24 122 	%argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:501
#     }
	assign		___278_C $const2 	%filename{"D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h"} %line{501} %argrw{"wr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:503
#     color hsl_to_rgb (color c) {
	for		$tmp51 109 110 121 121 	%line{503} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:507
#         color r;
	lights_begin	P Nf $const25 	%line{507} %argrw{"rrr"}
	lights		$tmp51 P Nf $const25 	%argrw{"wrrr"} %argderivs{1}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:504
# 		float __nondiffuse = 0;
	assign		___279___nondiffuse $const2 	%line{504} %argrw{"wr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:505
# 		getmessage ("light", "__nondiffuse", __nondiffuse);
	getmessage	$tmp52 $const26 $const27 ___279___nondiffuse 	%line{505} %argrw{"wrrw"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:506
# 		C += Cl * (1-__nondiffuse) * max (0, dot (N, normalize (L)));
	sub		$tmp53 $const4 ___279___nondiffuse 	%line{506} %argrw{"wrr"}
	mul		$tmp54 Cl $tmp53 	%argrw{"wrr"}
	assign		$tmp56 $const10 	%argrw{"wr"}
	normalize	$tmp58 L 	%argrw{"wr"}
	dot		$tmp57 Nf $tmp58 	%argrw{"wrr"}
	assign		$tmp59 $tmp57 	%argrw{"wr"}
	max		$tmp55 $tmp56 $tmp59 	%argrw{"wrr"}
	mul		$tmp60 $tmp54 $tmp55 	%argrw{"wrr"}
	add		___278_C ___278_C $tmp60 	%argrw{"wrr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:508
# 	return C;
	assign		$tmp50 ___278_C 	%line{508} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\fakeglass.osl:130
#          (kr*Crefl + Ks*LocIllumGlossy(Nf,-IN,roughness,0.5)));
	mul		$tmp61 Kd $tmp50 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\fakeglass.osl"} %line{130} %argrw{"wrr"}
	add		$tmp62 $tmp49 $tmp61 	%argrw{"wrr"}
	mul		$tmp63 C $tmp62 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\fakeglass.osl:131
#     opacity = 1-kt*transmitcolor;
	mul		$tmp64 kr Crefl 	%line{131} %argrw{"wrr"}
	neg		$tmp66 IN 	%argrw{"wr"}
	functioncall	$const28 153 	%argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\material.h:400
# // give a metallic appearance, both diffuse and specular components are 
	assign		___323_C $const2 	%filename{"D:/xrt.git\\src\\osl\\shaders\\material.h"} %line{400} %argrw{"wr"}
# D:/xrt.git\\src\\osl\\shaders\\material.h:401
# // scaled by the color of the metal.  It is recommended that Kd < 0.1,
	sub		$tmp67 $const4 $const11 	%line{401} %argrw{"wrr"}
	mul		___323_w $const29 $tmp67 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\material.h:402
# // Ks > 0.5, and roughness > 0.15 to give a believable metallic appearance.
	for		$tmp68 133 134 152 152 	%line{402} %argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\material.h:411
#                           float samples)
	lights_begin	P Nf $const25 	%line{411} %argrw{"rrr"}
	lights		$tmp68 P Nf $const25 	%argrw{"wrrr"} %argderivs{1}
# D:/xrt.git\\src\\osl\\shaders\\material.h:403
# 	float nonspec = 0;
	assign		___324_nonspec $const2 	%line{403} %argrw{"wr"}
# D:/xrt.git\\src\\osl\\shaders\\material.h:404
# 	getmessage ("light", "__nonspecular", nonspec);
	getmessage	$tmp69 $const26 $const30 ___324_nonspec 	%line{404} %argrw{"wrrw"}
# D:/xrt.git\\src\\osl\\shaders\\material.h:405
# 	if (nonspec < 1) {
	lt		$tmp70 ___324_nonspec $const3 	%line{405} %argrw{"wrr"}
	if		$tmp70 152 152 	%argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\material.h:406
# 	    vector H = normalize(normalize(L)+V);
	normalize	$tmp71 L 	%line{406} %argrw{"wr"}
	add		$tmp72 $tmp71 $tmp66 	%argrw{"wrr"}
	normalize	___325_H $tmp72 	%argrw{"wr"}
# D:/xrt.git\\src\\osl\\shaders\\material.h:407
# 	    C += Cl * ((1-nonspec) * 
	sub		$tmp73 $const4 ___324_nonspec 	%line{407} %argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\material.h:408
# 		       smoothstep (.72-w, .72+w,
	sub		$tmp75 $const31 ___323_w 	%line{408} %argrw{"wrr"}
	add		$tmp76 $const31 ___323_w 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\material.h:409
# 				   pow(max(0,dot(N,H)), 1/roughness)));
	dot		$tmp79 Nf ___325_H 	%line{409} %argrw{"wrr"}
	max		$tmp78 $const10 $tmp79 	%argrw{"wrr"}
	div		$tmp80 $const4 roughness 	%argrw{"wrr"}
	pow		$tmp77 $tmp78 $tmp80 	%argrw{"wrr"}
	smoothstep	$tmp74 $tmp75 $tmp76 $tmp77 	%argrw{"wrrr"}
	mul		$tmp81 $tmp73 $tmp74 	%argrw{"wrr"}
	mul		$tmp82 Cl $tmp81 	%argrw{"wrr"}
	add		___323_C ___323_C $tmp82 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\material.h:412
#     return C;
	assign		$tmp65 ___323_C 	%line{412} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\fakeglass.osl:131
#     opacity = 1-kt*transmitcolor;
	mul		$tmp83 Ks $tmp65 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\fakeglass.osl"} %line{131} %argrw{"wrr"}
	add		$tmp84 $tmp64 $tmp83 	%argrw{"wrr"}
	add		C $tmp63 $tmp84 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\fakeglass.osl:132
# }
	mul		$tmp85 kt transmitcolor 	%line{132} %argrw{"wrr"}
	sub		opacity $const4 $tmp85 	%argrw{"wrr"}
	end
