OpenShadingLanguage 1.01
# Compiled by oslc 1.6.2
volume depthcue
param	float	mindistance	0		%read{1,2} %write{2147483647,-1}
param	float	maxdistance	1000000		%read{2,2} %write{2147483647,-1}
param	color	background	0 0 0		%read{7,7} %write{2147483647,-1}
param	string	units	"common"		%read{2147483647,-1} %write{2147483647,-1}
global	vector	I	%read{0,0} %write{2147483647,-1}
global	color	C	%read{8,8} %write{8,8}
global	color	opacity	%read{7,7} %write{2147483647,-1}
local	float	d	%read{1,8} %write{0,6}
temp	float	$tmp1	%read{3,3} %write{1,1}
temp	float	$tmp2	%read{3,3} %write{2,2}
temp	float	$tmp3	%read{5,5} %write{3,3}
const	float	$const1	0		%read{6,6} %write{2147483647,-1}
const	float	$const2	1		%read{5,5} %write{2147483647,-1}
const	string	$const3	"clamp"		%read{4,4} %write{2147483647,-1}
temp	float	$tmp4	%read{6,6} %write{5,5}
temp	color	$tmp5	%read{8,8} %write{7,7}
code ___main___
# D:\\xrt.git\\src\\osl\\shaders\\depthcue.osl:7
#     d = clamp( (d - mindistance) / (maxdistance - mindistance),
	length		d I 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\depthcue.osl"} %line{7} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\depthcue.osl:8
# 		0., 1. );
	sub		$tmp1 d mindistance 	%line{8} %argrw{"wrr"}
	sub		$tmp2 maxdistance mindistance 	%argrw{"wrr"}
	div		$tmp3 $tmp1 $tmp2 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\depthcue.osl:9
#     C = mix( C, background * opacity, d );
	functioncall	$const3 7 	%line{9} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:144
# float  mod (float  a, float  b) { return a - b*floor(a/b); }
	min		$tmp4 $tmp3 $const2 	%filename{"D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h"} %line{144} %argrw{"wrr"}
	max		d $tmp4 $const1 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\depthcue.osl:10
# } 
	mul		$tmp5 background opacity 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\depthcue.osl"} %line{10} %argrw{"wrr"}
	mix		C C $tmp5 d 	%argrw{"wrrr"}
	end
