OpenShadingLanguage 1.01
# Compiled by oslc 1.6.2
displacement cloth
param	float	freq	500		%read{2,4} %write{2147483647,-1} %derivs
param	float	depth	0.02		%read{13,13} %write{2147483647,-1} %derivs
param	float	s	0		%read{2,2} %write{0,0} %derivs %initexpr
param	float	t	0		%read{4,4} %write{1,1} %derivs %initexpr
global	point	P	%read{9,17} %write{16,16} %derivs
global	normal	N	%read{11,11} %write{17,17} %derivs
global	float	u	%read{0,0} %write{2147483647,-1} %derivs
global	float	v	%read{1,1} %write{2147483647,-1} %derivs
local	float	d	%read{14,14} %write{7,7} %derivs
local	normal	sN	%read{13,13} %write{12,12} %derivs
local	point	PP	%read{15,15} %write{9,9} %derivs
temp	float	$tmp1	%read{6,6} %write{3,3} %derivs
temp	float	$tmp2	%read{3,3} %write{2,2} %derivs
temp	float	$tmp3	%read{6,6} %write{5,5} %derivs
temp	float	$tmp4	%read{5,5} %write{4,4} %derivs
temp	float	$tmp5	%read{7,7} %write{6,6} %derivs
const	float	$const2	1		%read{7,7} %write{2147483647,-1}
const	string	$const3	"shader"		%read{9,16} %write{2147483647,-1}
const	string	$const4	"transform"		%read{8,10} %write{2147483647,-1}
const	string	$const5	"common"		%read{9,16} %write{2147483647,-1}
temp	normal	$tmp6	%read{12,12} %write{11,11} %derivs
temp	normal	$tmp7	%read{14,14} %write{13,13} %derivs
temp	normal	$tmp8	%read{15,15} %write{14,14} %derivs
temp	point	$tmp9	%read{16,16} %write{15,15} %derivs
code s
# D:\\xrt.git\\src\\osl\\shaders\\cloth.osl:10
# {
	assign		s u 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\cloth.osl"} %line{10} %argrw{"wr"}
code t
# D:\\xrt.git\\src\\osl\\shaders\\cloth.osl:10
# {
	assign		t v 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\cloth.osl"} %line{10} %argrw{"wr"}
code ___main___
# D:\\xrt.git\\src\\osl\\shaders\\cloth.osl:16
#     PP = transform("shader",P);
	mul		$tmp2 freq s 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\cloth.osl"} %line{16} %argrw{"wrr"}
	noise		$tmp1 $tmp2 	%argrw{"wr"}
	mul		$tmp4 freq t 	%argrw{"wrr"}
	noise		$tmp3 $tmp4 	%argrw{"wr"}
	add		$tmp5 $tmp1 $tmp3 	%argrw{"wrr"}
	sub		d $tmp5 $const2 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\cloth.osl:17
#     sN = normalize(transform("shader",N));
	functioncall	$const4 10 	%line{17} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:249
# 
	transform	PP $const5 $const3 P 	%filename{"D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h"} %line{249} %argrw{"wrrr"}
# D:\\xrt.git\\src\\osl\\shaders\\cloth.osl:18
#     P = transform("shader","common",PP + sN*depth*d);
	functioncall	$const4 12 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\cloth.osl"} %line{18} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:247
#         T = vector (0,0,0);
	transformn	$tmp6 $const5 $const3 N 	%filename{"D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h"} %line{247} %argrw{"wrrr"}
# D:\\xrt.git\\src\\osl\\shaders\\cloth.osl:18
#     P = transform("shader","common",PP + sN*depth*d);
	normalize	sN $tmp6 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\cloth.osl"} %line{18} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\cloth.osl:19
#     N = calculatenormal(P);
	mul		$tmp7 sN depth 	%line{19} %argrw{"wrr"}
	mul		$tmp8 $tmp7 d 	%argrw{"wrr"}
	add		$tmp9 PP $tmp8 	%argrw{"wrr"}
	transform	P $const3 $const5 $tmp9 	%argrw{"wrrr"}
# D:\\xrt.git\\src\\osl\\shaders\\cloth.osl:20
# }
	calculatenormal	N P 	%line{20} %argrw{"wr"} %argderivs{1}
	end
