OpenShadingLanguage 1.01
# Compiled by oslc 1.6.2
surface oak	%meta{string,help,"Oak solid texture"} 
param	float	Ka	1		%meta{string,help,"Ambient scaling"} %meta{float,min,0} %meta{float,max,1}  %read{146,146} %write{2147483647,-1}
param	float	Kd	1		%meta{string,help,"Diffuse scaling"} %meta{float,min,0} %meta{float,max,1}  %read{164,164} %write{2147483647,-1}
param	float	Ks	0.25		%meta{string,help,"Specular scaling"} %meta{float,min,0} %meta{float,max,1}  %read{143,143} %write{2147483647,-1}
param	float	roughness	0.2		%meta{string,help,"Surface roughness (specular highlight size)"} %meta{float,min,0} %meta{float,UImax,1}  %read{184,184} %write{2147483647,-1}
param	float	divotdepth	0.050000001		%meta{string,help,"Divot depth for rings and grain"}  %read{110,110} %write{2147483647,-1} %derivs
param	color	Clightwood	0.5 0.2 0.067000002		%meta{string,help,"Light wood color"}  %read{108,108} %write{2147483647,-1}
param	color	Cdarkwood	0.15000001 0.077 0.028000001		%meta{string,help,"Dark wood color"}  %read{108,108} %write{2147483647,-1}
param	float	ringy	1		%meta{string,help,"Ring amplitude"} %meta{float,min,0}  %read{106,106} %write{2147483647,-1} %derivs
param	float	ringfreq	8		%meta{string,help,"Ring frequency"}  %read{45,45} %write{2147483647,-1} %derivs
param	float	ringunevenness	0.30000001		%meta{string,help,"Ring unevenness"}  %read{59,59} %write{2147483647,-1} %derivs
param	float	ringnoise	0.02		%meta{string,help,"Ring noise"}  %read{30,30} %write{2147483647,-1} %derivs
param	float	ringnoisefreq	1		%meta{string,help,"Ring noise frequency"}  %read{7,8} %write{2147483647,-1} %derivs
param	float	trunkwobble	0.15000001		%meta{string,help,"Trunk wobble"}  %read{35,35} %write{2147483647,-1} %derivs
param	float	trunkwobblefreq	0.025		%meta{string,help,"Trunk wobble frequency"}  %read{33,33} %write{2147483647,-1} %derivs
param	float	angularwobble	1		%meta{string,help,"Angular wobble"}  %read{47,47} %write{2147483647,-1} %derivs
param	float	angularwobblefreq	1.5		%meta{string,help,"Angular wobble frequency"}  %read{48,48} %write{2147483647,-1} %derivs
param	float	grainy	1		%meta{string,help,"Grain amplitude"}  %read{95,95} %write{2147483647,-1} %derivs
param	float	grainfreq	25		%meta{string,help,"Grain frequency"}  %read{71,71} %write{2147483647,-1} %derivs
param	point	Pref	0 0 0		%meta{string,help,"Reference pose (defaults to P)"}  %read{2,2} %write{0,0} %derivs %initexpr
param	string	shadingspace	"shader"		%meta{string,help,"Shading space"}  %read{2,2} %write{2147483647,-1} %derivs
param	float	shadingfreq	1		%meta{string,help,"Shading frequency"}  %read{3,3} %write{2147483647,-1} %derivs
global	point	P	%read{0,173} %write{124,124} %derivs
global	vector	I	%read{135,167} %write{2147483647,-1}
global	normal	N	%read{113,132} %write{127,131} %derivs
global	normal	Ng	%read{135,135} %write{2147483647,-1}
global	color	C	%read{192,192} %write{191,192}
global	color	opacity	%read{192,192} %write{2147483647,-1}
global	vector	L	%read{157,178} %write{2147483647,-1}
global	color	Cl	%read{155,177} %write{2147483647,-1}
local	vector	___261_dir	%read{116,122} %write{113,113} %derivs
local	vector	___261_Nresid	%read{127,131} %write{116,116} %derivs
local	float	___261_spacescale	%read{120,120} %write{119,119} %derivs
local	vector	___261_Ndisp	%read{124,128} %write{122,122} %derivs
local	color	___278_C	%read{149,163} %write{148,162}
local	float	___279___nondiffuse	%read{149,162} %write{149,162}
local	vector	___280_H	%read{171,188} %write{171,188}
local	color	___281_C	%read{171,189} %write{170,188}
local	float	___282___nonspecular	%read{171,188} %write{171,188}
local	float	___374_amp	%read{14,28} %write{10,28} %derivs
local	point	___374_pp	%read{14,28} %write{11,28} %derivs
local	vector	___374_sum	%read{14,29} %write{12,28} %derivs
local	float	___374_fw	%read{14,28} %write{13,28} %derivs
local	float	___374_i	%read{14,28} %write{14,28}
local	vector	___423_offset	%read{30,30} %write{29,29} %derivs
local	point	___423_Pring	%read{37,48} %write{31,37} %derivs
local	float	___423_r	%read{46,66} %write{45,60} %derivs
local	float	___423_dr	%read{56,56} %write{53,53} %derivs
local	float	___423_inring	%read{77,106} %write{70,105} %derivs
local	point	___423_Pgrain	%read{73,105} %write{72,105} %derivs
local	float	___423_dPgrain	%read{77,105} %write{74,105} %derivs
local	float	___423_grain	%read{77,107} %write{75,105} %derivs
local	float	___423_i	%read{77,105} %write{77,105}
local	float	___423_amp	%read{77,105} %write{76,105}
local	float	___425_grain1valid	%read{77,105} %write{77,105} %derivs
local	float	___426_g	%read{77,105} %write{77,105} %derivs
local	point	Pshad	%read{4,71} %write{3,3} %derivs
local	float	dPshad	%read{8,8} %write{5,5} %derivs
local	float	wood	%read{108,141} %write{107,107} %derivs
local	color	Cwood	%read{166,166} %write{108,108}
local	normal	Nf	%read{150,182} %write{138,139}
temp	point	$tmp1	%read{3,3} %write{2,2} %derivs
const	string	$const1	"transform"		%read{1,117} %write{2147483647,-1}
const	string	$const2	"common"		%read{2,118} %write{2147483647,-1}
temp	float	$tmp2	%read{5,5} %write{4,4} %derivs
const	string	$const3	"oaktexture"		%read{6,6} %write{2147483647,-1}
temp	point	$tmp3	%read{11,11} %write{7,7} %derivs
temp	float	$tmp4	%read{13,13} %write{8,8} %derivs
const	int	$const4	2		%read{32,79} %write{2147483647,-1}
const	float	$const5	2		%read{16,103} %write{2147483647,-1}
const	float	$const7	4		%read{25,26} %write{2147483647,-1}
const	float	$const8	0.5		%read{24,141} %write{2147483647,-1}
const	string	$const9	"vfBm"		%read{9,9} %write{2147483647,-1}
const	int	$const10	1		%read{10,76} %write{2147483647,-1}
const	int	$const11	0		%read{12,174} %write{2147483647,-1}
temp	int	$tmp5	%read{14,28} %write{14,28}
temp	vector	$tmp6	%read{22,22} %write{21,21} %derivs
const	string	$const12	"filteredvsnoise"		%read{17,17} %write{2147483647,-1}
temp	vector	$tmp7	%read{21,21} %write{18,18} %derivs
temp	float	$tmp8	%read{20,20} %write{19,19} %derivs
const	float	$const13	0.2		%read{19,80} %write{2147483647,-1}
const	float	$const14	0.75		%read{19,56} %write{2147483647,-1}
temp	float	$tmp9	%read{21,21} %write{20,20} %derivs
const	float	$const15	1		%read{20,176} %write{2147483647,-1}
temp	vector	$tmp10	%read{23,23} %write{22,22} %derivs
temp	point	$tmp11	%read{27,27} %write{26,26} %derivs
temp	vector	$tmp12	%read{31,31} %write{30,30} %derivs
temp	vector	$tmp13	%read{35,35} %write{34,34} %derivs
temp	float	$tmp14	%read{33,33} %write{32,32} %derivs
temp	float	$tmp15	%read{34,34} %write{33,33} %derivs
temp	vector	$tmp16	%read{36,36} %write{35,35} %derivs
const	vector	$const16	1 1 0		%read{36,36} %write{2147483647,-1}
temp	vector	$tmp18	%read{37,37} %write{36,36} %derivs
temp	float	$tmp19	%read{45,45} %write{44,44} %derivs
temp	float	$tmp20	%read{41,41} %write{38,38} %derivs
temp	float	$tmp21	%read{42,42} %write{39,39} %derivs
const	string	$const17	"hypot"		%read{40,40} %write{2147483647,-1}
temp	float	$tmp22	%read{43,43} %write{41,41} %derivs
temp	float	$tmp23	%read{43,43} %write{42,42} %derivs
temp	float	$tmp24	%read{44,44} %write{43,43} %derivs
temp	float	$tmp25	%read{47,47} %write{46,46} %derivs
const	float	$const18	0		%read{46,183} %write{2147483647,-1}
const	float	$const20	5		%read{46,46} %write{2147483647,-1}
temp	float	$tmp26	%read{51,51} %write{47,47} %derivs
temp	float	$tmp27	%read{51,51} %write{50,50} %derivs
temp	point	$tmp28	%read{49,49} %write{48,48} %derivs
const	vector	$const21	1 1 0.1		%read{49,49} %write{2147483647,-1}
temp	point	$tmp30	%read{50,50} %write{49,49} %derivs
temp	float	$tmp31	%read{52,52} %write{51,51} %derivs
temp	float	$tmp32	%read{59,59} %write{58,58} %derivs
const	string	$const22	"filteredsnoise"		%read{54,54} %write{2147483647,-1}
temp	float	$tmp33	%read{58,58} %write{55,55} %derivs
temp	float	$tmp34	%read{57,57} %write{56,56} %derivs
temp	float	$tmp35	%read{58,58} %write{57,57} %derivs
temp	float	$tmp36	%read{60,60} %write{59,59} %derivs
const	float	$const23	0.1		%read{68,68} %write{2147483647,-1}
const	float	$const24	0.55000001		%read{68,68} %write{2147483647,-1}
const	float	$const25	0.69999999		%read{69,86} %write{2147483647,-1}
const	float	$const26	0.94999999		%read{69,69} %write{2147483647,-1}
const	string	$const27	"smoothpulsetrain"		%read{61,61} %write{2147483647,-1}
temp	float	$tmp37	%read{68,69} %write{66,66} %derivs
const	string	$const28	"mod"		%read{62,62} %write{2147483647,-1}
temp	float	$tmp38	%read{65,65} %write{64,64} %derivs
temp	float	$tmp39	%read{64,64} %write{63,63} %derivs
temp	float	$tmp40	%read{66,66} %write{65,65} %derivs
const	string	$const29	"smoothpulse"		%read{67,67} %write{2147483647,-1}
temp	float	$tmp41	%read{70,70} %write{68,68} %derivs
temp	float	$tmp42	%read{70,70} %write{69,69} %derivs
temp	point	$tmp43	%read{72,72} %write{71,71} %derivs
const	vector	$const30	1 1 0.050000001		%read{72,72} %write{2147483647,-1}
temp	float	$tmp45	%read{74,74} %write{73,73} %derivs
temp	int	$tmp46	%read{77,105} %write{77,105}
temp	float	$tmp47	%read{81,81} %write{80,80} %derivs
const	float	$const31	0.60000002		%read{80,80} %write{2147483647,-1}
temp	int	$tmp48	%read{83,83} %write{82,82}
temp	float	$tmp49	%read{85,85} %write{84,84} %derivs
const	float	$const32	0.30000001		%read{87,87} %write{2147483647,-1}
temp	float	$tmp50	%read{87,87} %write{86,86} %derivs
temp	float	$tmp51	%read{88,88} %write{87,87} %derivs
temp	float	$tmp52	%read{93,93} %write{92,92} %derivs
const	float	$const33	0.80000001		%read{89,89} %write{2147483647,-1}
temp	float	$tmp53	%read{91,91} %write{89,89} %derivs
const	string	$const34	"clamp"		%read{90,90} %write{2147483647,-1}
temp	float	$tmp54	%read{92,92} %write{91,91} %derivs
temp	float	$tmp55	%read{95,95} %write{94,94} %derivs
temp	int	$tmp56	%read{97,97} %write{96,96}
const	float	$const35	0.40000001		%read{98,98} %write{2147483647,-1}
temp	float	$tmp57	%read{99,99} %write{98,98} %derivs
temp	float	$tmp58	%read{100,100} %write{99,99} %derivs
temp	float	$tmp59	%read{107,107} %write{106,106} %derivs
const	string	$const36	"shader"		%read{118,118} %write{2147483647,-1}
temp	float	$tmp60	%read{110,110} %write{109,109} %derivs
temp	float	$tmp61	%read{121,121} %write{110,110} %derivs
const	string	$const37	"bump"		%read{111,111} %write{2147483647,-1}
const	string	$const38	"displace"		%read{112,112} %write{2147483647,-1}
temp	vector	$tmp62	%read{116,116} %write{115,115} %derivs
temp	vector	$tmp63	%read{115,115} %write{114,114} %derivs
temp	vector	$tmp64	%read{119,119} %write{118,118} %derivs
temp	float	$tmp65	%read{121,121} %write{120,120} %derivs
const	float	$const39	1e-006		%read{120,120} %write{2147483647,-1}
temp	float	$tmp66	%read{122,122} %write{121,121} %derivs
temp	vector	$tmp67	%read{127,127} %write{126,126} %derivs
temp	vector	$tmp68	%read{126,126} %write{125,125} %derivs
temp	vector	$tmp69	%read{131,131} %write{130,130} %derivs
temp	vector	$tmp70	%read{130,130} %write{129,129} %derivs
temp	point	$tmp71	%read{129,129} %write{128,128} %derivs
temp	normal	$tmp72	%read{138,139} %write{132,132}
const	string	$const40	"faceforward"		%read{133,134} %write{2147483647,-1}
temp	float	$tmp73	%read{136,136} %write{135,135}
temp	int	$tmp74	%read{137,137} %write{136,136}
temp	float	$tmp75	%read{142,142} %write{141,141}
temp	float	$tmp76	%read{143,143} %write{142,142}
temp	float	$tmp77	%read{149,190} %write{143,188}
const	string	$const41	"MaterialPlastic"		%read{144,144} %write{2147483647,-1}
temp	color	$tmp78	%read{146,146} %write{145,145}
temp	color	$tmp79	%read{149,165} %write{146,162}
temp	color	$tmp80	%read{164,164} %write{163,163}
const	string	$const42	"diffuse"		%read{147,147} %write{2147483647,-1}
const	float	$const43	1.5707964		%read{150,173} %write{2147483647,-1}
temp	int	$tmp81	%read{149,162} %write{149,162}
temp	int	$tmp82	%read{2147483647,-1} %write{153,153}
const	string	$const44	"light"		%read{153,175} %write{2147483647,-1}
const	string	$const45	"__nondiffuse"		%read{153,153} %write{2147483647,-1}
temp	float	$tmp83	%read{155,155} %write{154,154}
temp	color	$tmp84	%read{161,161} %write{155,155}
temp	color	$tmp85	%read{161,161} %write{160,160}
temp	color	$tmp86	%read{160,160} %write{156,156}
temp	float	$tmp87	%read{159,159} %write{158,158}
temp	vector	$tmp88	%read{158,158} %write{157,157}
temp	color	$tmp89	%read{160,160} %write{159,159}
temp	color	$tmp90	%read{149,162} %write{149,162}
temp	color	$tmp91	%read{165,165} %write{164,164}
temp	color	$tmp92	%read{166,166} %write{165,165}
temp	color	$tmp93	%read{171,191} %write{166,188}
temp	color	$tmp94	%read{190,190} %write{189,189}
temp	vector	$tmp95	%read{168,168} %write{167,167}
temp	vector	$tmp96	%read{171,188} %write{168,188}
const	string	$const46	"specular"		%read{169,169} %write{2147483647,-1}
temp	int	$tmp97	%read{171,188} %write{171,188}
temp	int	$tmp98	%read{2147483647,-1} %write{175,175}
const	string	$const47	"__nonspecular"		%read{175,175} %write{2147483647,-1}
temp	float	$tmp99	%read{177,177} %write{176,176}
temp	color	$tmp100	%read{187,187} %write{177,177}
temp	color	$tmp101	%read{187,187} %write{186,186}
temp	vector	$tmp102	%read{180,180} %write{178,178}
const	string	$const48	"specularbrdf"		%read{179,179} %write{2147483647,-1}
temp	vector	$tmp103	%read{181,181} %write{180,180}
temp	float	$tmp104	%read{186,186} %write{185,185}
temp	float	$tmp105	%read{185,185} %write{183,183}
temp	float	$tmp106	%read{183,183} %write{182,182}
temp	float	$tmp107	%read{185,185} %write{184,184}
const	float	$const50	8		%read{184,184} %write{2147483647,-1}
temp	color	$tmp108	%read{171,188} %write{171,188}
temp	color	$tmp109	%read{191,191} %write{190,190}
code Pref
# D:\\xrt.git\\src\\osl\\shaders\\oak.osl:127
#     string shadingspace = "shader"
	assign		Pref P 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\oak.osl"} %line{127} %argrw{"wr"}
code ___main___
# D:\\xrt.git\\src\\osl\\shaders\\oak.osl:134
#     float dPshad = sqrt(area(Pshad));
	functioncall	$const1 3 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\oak.osl"} %line{134} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:249
# PERCOMP1 (abs)
	transform	$tmp1 $const2 shadingspace Pref 	%filename{"D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h"} %line{249} %argrw{"wrrr"}
# D:\\xrt.git\\src\\osl\\shaders\\oak.osl:134
#     float dPshad = sqrt(area(Pshad));
	mul		Pshad shadingfreq $tmp1 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\oak.osl"} %line{134} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\oak.osl:135
# 
	area		$tmp2 Pshad 	%line{135} %argrw{"wr"} %argderivs{1}
	sqrt		dPshad $tmp2 	%argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\oak.osl:140
#     color Cwood = mix (Clightwood, Cdarkwood, wood);
	functioncall	$const3 108 	%line{140} %argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:78
#     vector offset = vfBm(Pshad*ringnoisefreq,dPshad*ringnoisefreq, 2, 4, 0.5);
	mul		$tmp3 Pshad ringnoisefreq 	%filename{"D:/xrt.git\\src\\osl\\shaders\\oak.h"} %line{78} %argrw{"wrr"}
	mul		$tmp4 dPshad ringnoisefreq 	%argrw{"wrr"}
	functioncall	$const9 30 	%argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\noises.h:150
#     return ((vector)snoise(p)) * (1-smoothstep (FILTLOW,FILTHIGH,width));
	assign		___374_amp $const10 	%filename{"D:/xrt.git\\src\\osl\\shaders\\noises.h"} %line{150} %argrw{"wr"}
# D:/xrt.git\\src\\osl\\shaders\\noises.h:151
# }
	assign		___374_pp $tmp3 	%line{151} %argrw{"wr"}
# D:/xrt.git\\src\\osl\\shaders\\noises.h:152
# vector filteredvsnoise (vector p, float width) {
	assign		___374_sum $const11 	%line{152} %argrw{"wr"}
# D:/xrt.git\\src\\osl\\shaders\\noises.h:153
#     return ((vector)snoise(p)) * (1-smoothstep (FILTLOW,FILTHIGH,width));
	assign		___374_fw $tmp4 	%line{153} %argrw{"wr"}
# D:/xrt.git\\src\\osl\\shaders\\noises.h:156
# float filteredpsnoise (float p, float per, float width) {
	for		$tmp5 16 17 28 29 	%line{156} %argrw{"r"}
	assign		___374_i $const11 	%argrw{"wr"}
	lt		$tmp5 ___374_i $const5 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\noises.h:157
#     return psnoise(p, per) * (1-smoothstep (FILTLOW,FILTHIGH,width));
	functioncall	$const12 22 	%line{157} %argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\noises.h:72
#     return ((vector)snoise(p)) * (1-smoothstep (FILTLOW,FILTHIGH,width));
	snoise		$tmp7 ___374_pp 	%line{72} %argrw{"wr"}
	smoothstep	$tmp8 $const13 $const14 ___374_fw 	%argrw{"wrrr"}
	sub		$tmp9 $const15 $tmp8 	%argrw{"wrr"}
	mul		$tmp6 $tmp7 $tmp9 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\noises.h:157
# 	sum += amp * filteredvsnoise (pp, fw);
	mul		$tmp10 ___374_amp $tmp6 	%line{157} %argrw{"wrr"}
	add		___374_sum ___374_sum $tmp10 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\noises.h:158
# 	amp *= gain;  fw *= lacunarity;
	mul		___374_amp ___374_amp $const8 	%line{158} %argrw{"wrr"}
	mul		___374_fw ___374_fw $const7 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\noises.h:159
#         pp = pp * lacunarity + 1;  // multiply and offset
	mul		$tmp11 ___374_pp $const7 	%line{159} %argrw{"wrr"}
	add		___374_pp $tmp11 $const15 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\noises.h:156
#     for (i = 0;  i < octaves;  i += 1) {
	add		___374_i ___374_i $const15 	%line{156} %argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\noises.h:161
#     return sum;
	assign		___423_offset ___374_sum 	%line{161} %argrw{"wr"}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:79
#     point Pring = Pshad + ringnoise*offset;
	mul		$tmp12 ringnoise ___423_offset 	%filename{"D:/xrt.git\\src\\osl\\shaders\\oak.h"} %line{79} %argrw{"wrr"}
	add		___423_Pring Pshad $tmp12 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:82
#                (vector)snoise(Pshad[2]*trunkwobblefreq) * vector(1,1,0);
	compref		$tmp14 Pshad $const4 	%line{82} %argrw{"wrr"}
	mul		$tmp15 $tmp14 trunkwobblefreq 	%argrw{"wrr"}
	snoise		$tmp13 $tmp15 	%argrw{"wr"}
	mul		$tmp16 trunkwobble $tmp13 	%argrw{"wrr"}
	mul		$tmp18 $tmp16 $const16 	%argrw{"wrr"}
	add		___423_Pring ___423_Pring $tmp18 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:85
#     float r = hypot(Pring[0], Pring[1]) * ringfreq;
	compref		$tmp20 ___423_Pring $const11 	%line{85} %argrw{"wrr"}
	compref		$tmp21 ___423_Pring $const10 	%argrw{"wrr"}
	functioncall	$const17 45 	%argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:113
# 
	mul		$tmp22 $tmp20 $tmp20 	%filename{"D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h"} %line{113} %argrw{"wrr"}
	mul		$tmp23 $tmp21 $tmp21 	%argrw{"wrr"}
	add		$tmp24 $tmp22 $tmp23 	%argrw{"wrr"}
	sqrt		$tmp19 $tmp24 	%argrw{"wr"}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:85
#     float r = hypot(Pring[0], Pring[1]) * ringfreq;
	mul		___423_r $tmp19 ringfreq 	%filename{"D:/xrt.git\\src\\osl\\shaders\\oak.h"} %line{85} %argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:87
#     r += angularwobble * smoothstep(0,5,r)
	smoothstep	$tmp25 $const18 $const20 ___423_r 	%line{87} %argrw{"wrrr"}
	mul		$tmp26 angularwobble $tmp25 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:88
# 	   * snoise (angularwobblefreq*(Pring)*vector(1,1,0.1));
	mul		$tmp28 angularwobblefreq ___423_Pring 	%line{88} %argrw{"wrr"}
	mul		$tmp30 $tmp28 $const21 	%argrw{"wrr"}
	snoise		$tmp27 $tmp30 	%argrw{"wr"}
	mul		$tmp31 $tmp26 $tmp27 	%argrw{"wrr"}
	add		___423_r ___423_r $tmp31 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:91
#     float dr = filterwidth(r);
	filterwidth	___423_dr ___423_r 	%line{91} %argrw{"wr"} %argderivs{1}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:92
#     r += ringunevenness*filteredsnoise(r,dr);
	functioncall	$const22 59 	%line{92} %argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\noises.h:59
#     return snoise(p) * (1-smoothstep (FILTLOW,FILTHIGH,width));
	snoise		$tmp33 ___423_r 	%filename{"D:/xrt.git\\src\\osl\\shaders\\noises.h"} %line{59} %argrw{"wr"}
	smoothstep	$tmp34 $const13 $const14 ___423_dr 	%argrw{"wrrr"}
	sub		$tmp35 $const15 $tmp34 	%argrw{"wrr"}
	mul		$tmp32 $tmp33 $tmp35 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:92
# // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
	mul		$tmp36 ringunevenness $tmp32 	%filename{"D:/xrt.git\\src\\osl\\shaders\\oak.h"} %line{92} %argrw{"wrr"}
	add		___423_r ___423_r $tmp36 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:94
# // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
	functioncall	$const27 71 	%line{94} %argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\patterns.h:177
#     // Compute x0, x1 bounding region of integration, and normalize so
	functioncall	$const28 67 	%filename{"D:/xrt.git\\src\\osl\\shaders\\patterns.h"} %line{177} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:135
# float  mod (float  a, float  b) { return a - b*floor(a/b); }
	div		$tmp39 ___423_r $const15 	%filename{"D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h"} %line{135} %argrw{"wrr"}
	floor		$tmp38 $tmp39 	%argrw{"wr"}
	mul		$tmp40 $const15 $tmp38 	%argrw{"wrr"}
	sub		$tmp37 ___423_r $tmp40 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\patterns.h:177
# 
	functioncall	$const29 71 	%filename{"D:/xrt.git\\src\\osl\\shaders\\patterns.h"} %line{177} %argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\patterns.h:158
#     return smoothstep(e0,e1,x) - smoothstep(e2,e3,x);
	smoothstep	$tmp41 $const23 $const24 $tmp37 	%line{158} %argrw{"wrrr"}
	smoothstep	$tmp42 $const25 $const26 $tmp37 	%argrw{"wrrr"}
	sub		___423_inring $tmp41 $tmp42 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:96
#     point Pgrain = Pshad*grainfreq*vector(1,1,.05);
	mul		$tmp43 Pshad grainfreq 	%filename{"D:/xrt.git\\src\\osl\\shaders\\oak.h"} %line{96} %argrw{"wrr"}
	mul		___423_Pgrain $tmp43 $const30 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:97
#     float dPgrain = sqrt(area(Pgrain));
	area		$tmp45 ___423_Pgrain 	%line{97} %argrw{"wr"} %argderivs{1}
	sqrt		___423_dPgrain $tmp45 	%argrw{"wr"}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:98
#     float grain = 0;
	assign		___423_grain $const11 	%line{98} %argrw{"wr"}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:99
#     float i, amp=1;
	assign		___423_amp $const10 	%line{99} %argrw{"wr"}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:100
#     for (i = 0;  i < 2;  i += 1) {
	for		$tmp46 79 80 105 106 	%line{100} %argrw{"r"}
	assign		___423_i $const11 	%argrw{"wr"}
	lt		$tmp46 ___423_i $const4 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:101
# 	float grain1valid = 1-smoothstep(.2,.6,dPgrain);
	smoothstep	$tmp47 $const13 $const31 ___423_dPgrain 	%line{101} %argrw{"wrrr"}
	sub		___425_grain1valid $const15 $tmp47 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:102
# 	if (grain1valid > 0) {
	gt		$tmp48 ___425_grain1valid $const11 	%line{102} %argrw{"wrr"}
	if		$tmp48 102 102 	%argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:103
# 	    float g = grain1valid * snoise (Pgrain);
	snoise		$tmp49 ___423_Pgrain 	%line{103} %argrw{"wr"}
	mul		___426_g ___425_grain1valid $tmp49 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:104
# 	    g *= (0.3 + 0.7*inring);
	mul		$tmp50 $const25 ___423_inring 	%line{104} %argrw{"wrr"}
	add		$tmp51 $const32 $tmp50 	%argrw{"wrr"}
	mul		___426_g ___426_g $tmp51 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:105
# 	    g = pow(clamp(0.8 - (g),0,1),2);
	sub		$tmp53 $const33 ___426_g 	%line{105} %argrw{"wrr"}
	functioncall	$const34 93 	%argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:144
# #define M_4PI     12.566370614359173         /* 4*pi */
	min		$tmp54 $tmp53 $const15 	%filename{"D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h"} %line{144} %argrw{"wrr"}
	max		$tmp52 $tmp54 $const18 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:105
# 	    g = pow(clamp(0.8 - (g),0,1),2);
	pow		___426_g $tmp52 $const5 	%filename{"D:/xrt.git\\src\\osl\\shaders\\oak.h"} %line{105} %argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:106
# 	    g = grainy * smoothstep (0.5, 1, g);
	smoothstep	$tmp55 $const8 $const15 ___426_g 	%line{106} %argrw{"wrrr"}
	mul		___426_g grainy $tmp55 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:107
# 	    if (i == 0) {
	eq		$tmp56 ___423_i $const11 	%line{107} %argrw{"wrr"}
	if		$tmp56 101 101 	%argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:108
# 		inring *= 1 - 0.4 * grain1valid;
	mul		$tmp57 $const35 ___425_grain1valid 	%line{108} %argrw{"wrr"}
	sub		$tmp58 $const15 $tmp57 	%argrw{"wrr"}
	mul		___423_inring ___423_inring $tmp58 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:110
# 	    grain = max (grain, g);
	max		___423_grain ___423_grain ___426_g 	%line{110} %argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:112
# 	Pgrain *= 2;
	mul		___423_Pgrain ___423_Pgrain $const5 	%line{112} %argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:113
# 	dPgrain *= 2;
	mul		___423_dPgrain ___423_dPgrain $const5 	%line{113} %argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:114
# 	amp *= 0.5;
	mul		___423_amp ___423_amp $const8 	%line{114} %argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:100
#     for (i = 0;  i < 2;  i += 1) {
	add		___423_i ___423_i $const15 	%line{100} %argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\oak.h:117
#     return mix (inring*ringy, 1, grain);
	mul		$tmp59 ___423_inring ringy 	%line{117} %argrw{"wrr"}
	mix		wood $tmp59 $const15 ___423_grain 	%argrw{"wrrr"}
# D:\\xrt.git\\src\\osl\\shaders\\oak.osl:141
# //   angularwobble, angularwobblefreq - warping indexed by angle about
	mix		Cwood Clightwood Cdarkwood wood 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\oak.osl"} %line{141} %argrw{"wrrr"}
# D:\\xrt.git\\src\\osl\\shaders\\oak.osl:142
# //       the z axis.
	neg		$tmp60 wood 	%line{142} %argrw{"wr"}
	mul		$tmp61 $tmp60 divotdepth 	%argrw{"wrr"}
	functioncall	$const37 132 	%argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:467
# 
	functioncall	$const38 132 	%filename{"D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h"} %line{467} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:449
#     vector dir = normalize(N);
	normalize	___261_dir N 	%line{449} %argrw{"wr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:451
#     vector Nresid = dir - normalize(calculatenormal (P));
	calculatenormal	$tmp63 P 	%line{451} %argrw{"wr"} %argderivs{1}
	normalize	$tmp62 $tmp63 	%argrw{"wr"}
	sub		___261_Nresid ___261_dir $tmp62 	%argrw{"wrr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:452
#     float spacescale = length(transform(space, dir));
	functioncall	$const1 119 	%line{452} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:248
# vector transform (string to, vector p) { return transform("common",to,p); }
	transformv	$tmp64 $const2 $const36 ___261_dir 	%line{248} %argrw{"wrrr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:452
#     float spacescale = length(transform(space, dir));
	length		___261_spacescale $tmp64 	%line{452} %argrw{"wr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:453
#     vector Ndisp = dir * (amp / max(spacescale,1e-6));
	max		$tmp65 ___261_spacescale $const39 	%line{453} %argrw{"wrr"}
	div		$tmp66 $tmp61 $tmp65 	%argrw{"wrr"}
	mul		___261_Ndisp ___261_dir $tmp66 	%argrw{"wrr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:454
# 	if (truedisp) {
	if		$const11 128 132 	%line{454} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:455
# 		P += Ndisp;
	add		P P ___261_Ndisp 	%line{455} %argrw{"wrr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:456
# 		N = Nresid + normalize (calculatenormal (P));
	calculatenormal	$tmp68 P 	%line{456} %argrw{"wr"} %argderivs{1}
	normalize	$tmp67 $tmp68 	%argrw{"wr"}
	add		N ___261_Nresid $tmp67 	%argrw{"wrr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:458
# 	    N = Nresid + normalize (calculatenormal (P + Ndisp));
	add		$tmp71 P ___261_Ndisp 	%line{458} %argrw{"wrr"}
	calculatenormal	$tmp70 $tmp71 	%argrw{"wr"} %argderivs{1}
	normalize	$tmp69 $tmp70 	%argrw{"wr"}
	add		N ___261_Nresid $tmp69 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\oak.osl:143
#     C = MaterialPlastic (Nf, Cwood, Ka, Kd, Ks*(1-0.5*wood), roughness);
	normalize	$tmp72 N 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\oak.osl"} %line{143} %argrw{"wr"}
	functioncall	$const40 141 	%argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:196
# #define BUILTIN [[ int builtin = 1 ]]
	functioncall	$const40 141 	%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		$tmp73 I Ng 	%line{192} %argrw{"wrr"}
	gt		$tmp74 $tmp73 $const11 	%argrw{"wrr"}
	if		$tmp74 139 140 	%argrw{"r"}
	neg		Nf $tmp72 	%argrw{"wr"}
	assign		Nf $tmp72 	%argrw{"wr"}
	return
# D:\\xrt.git\\src\\osl\\shaders\\oak.osl:144
#     C *= opacity;
	mul		$tmp75 $const8 wood 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\oak.osl"} %line{144} %argrw{"wrr"}
	sub		$tmp76 $const15 $tmp75 	%argrw{"wrr"}
	mul		$tmp77 Ks $tmp76 	%argrw{"wrr"}
	functioncall	$const41 192 	%argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\material.h:49
#     return basecolor * (Ka*ambient() + Kd*diffuse(Nf))
	ambient		$tmp78 	%filename{"D:/xrt.git\\src\\osl\\shaders\\material.h"} %line{49} %argrw{"w"}
	mul		$tmp79 Ka $tmp78 	%argrw{"wrr"}
	functioncall	$const42 164 	%argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:501
#     float spacescale = length(transform(space, dir));
	assign		___278_C $const11 	%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
# 	if (truedisp) {
	for		$tmp81 151 152 163 163 	%line{503} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:507
# 	    N = Nresid + normalize (calculatenormal (P + Ndisp));
	lights_begin	P Nf $const43 	%line{507} %argrw{"rrr"}
	lights		$tmp81 P Nf $const43 	%argrw{"wrrr"} %argderivs{1}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:504
# 		float __nondiffuse = 0;
	assign		___279___nondiffuse $const11 	%line{504} %argrw{"wr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:505
# 		getmessage ("light", "__nondiffuse", __nondiffuse);
	getmessage	$tmp82 $const44 $const45 ___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		$tmp83 $const15 ___279___nondiffuse 	%line{506} %argrw{"wrr"}
	mul		$tmp84 Cl $tmp83 	%argrw{"wrr"}
	assign		$tmp86 $const18 	%argrw{"wr"}
	normalize	$tmp88 L 	%argrw{"wr"}
	dot		$tmp87 Nf $tmp88 	%argrw{"wrr"}
	assign		$tmp89 $tmp87 	%argrw{"wr"}
	max		$tmp85 $tmp86 $tmp89 	%argrw{"wrr"}
	mul		$tmp90 $tmp84 $tmp85 	%argrw{"wrr"}
	add		___278_C ___278_C $tmp90 	%argrw{"wrr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:508
# 	return C;
	assign		$tmp80 ___278_C 	%line{508} %argrw{"wr"}
# D:/xrt.git\\src\\osl\\shaders\\material.h:49
#     return basecolor * (Ka*ambient() + Kd*diffuse(Nf))
	mul		$tmp91 Kd $tmp80 	%filename{"D:/xrt.git\\src\\osl\\shaders\\material.h"} %line{49} %argrw{"wrr"}
	add		$tmp92 $tmp79 $tmp91 	%argrw{"wrr"}
	mul		$tmp93 Cwood $tmp92 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\material.h:50
#            + Ks*specular(Nf,-normalize(I),roughness);
	normalize	$tmp95 I 	%line{50} %argrw{"wr"}
	neg		$tmp96 $tmp95 	%argrw{"wr"}
	functioncall	$const46 190 	%argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:527
# float stof (string str) BUILTIN;
	assign		___281_C $const11 	%filename{"D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h"} %line{527} %argrw{"wr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:529
# 
	for		$tmp97 173 174 189 189 	%line{529} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:533
# }
	lights_begin	P Nf $const43 	%line{533} %argrw{"rrr"}
	lights		$tmp97 P Nf $const43 	%argrw{"wrrr"} %argderivs{1}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:530
# 		float __nonspecular = 0;
	assign		___282___nonspecular $const11 	%line{530} %argrw{"wr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:531
# 		getmessage ("light", "__nonspecular", __nonspecular);
	getmessage	$tmp98 $const44 $const47 ___282___nonspecular 	%line{531} %argrw{"wrrw"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:532
# 		C += Cl * (1-__nonspecular) * specularbrdf (normalize (L), N, V, roughness);
	sub		$tmp99 $const15 ___282___nonspecular 	%line{532} %argrw{"wrr"}
	mul		$tmp100 Cl $tmp99 	%argrw{"wrr"}
	normalize	$tmp102 L 	%argrw{"wr"}
	functioncall	$const48 187 	%argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:511
# 	vector H = normalize( L + V );
	add		$tmp103 $tmp102 $tmp96 	%line{511} %argrw{"wrr"}
	normalize	___280_H $tmp103 	%argrw{"wr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:512
# 	return pow (max (0, dot (N, H)), 8 / roughness);
	dot		$tmp106 Nf ___280_H 	%line{512} %argrw{"wrr"}
	max		$tmp105 $const18 $tmp106 	%argrw{"wrr"}
	div		$tmp107 $const50 roughness 	%argrw{"wrr"}
	pow		$tmp104 $tmp105 $tmp107 	%argrw{"wrr"}
	assign		$tmp101 $tmp104 	%argrw{"wr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:532
# 		C += Cl * (1-__nonspecular) * specularbrdf (normalize (L), N, V, roughness);
	mul		$tmp108 $tmp100 $tmp101 	%line{532} %argrw{"wrr"}
	add		___281_C ___281_C $tmp108 	%argrw{"wrr"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:534
# 	return C;
	assign		$tmp94 ___281_C 	%line{534} %argrw{"wr"}
# D:/xrt.git\\src\\osl\\shaders\\material.h:50
#            + Ks*specular(Nf,-normalize(I),roughness);
	mul		$tmp109 $tmp77 $tmp94 	%filename{"D:/xrt.git\\src\\osl\\shaders\\material.h"} %line{50} %argrw{"wrr"}
	add		C $tmp93 $tmp109 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\oak.osl:145
#     color Clightwood = color (.5, .2, .067)
	mul		C C opacity 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\oak.osl"} %line{145} %argrw{"wrr"}
	end
