OpenShadingLanguage 1.01
# Compiled by oslc 1.6.2
volume fog
param	float	distance	1		%read{2,2} %write{2147483647,-1}
param	color	background	0 0 0		%read{5,5} %write{2147483647,-1}
global	vector	I	%read{0,0} %write{2147483647,-1}
global	color	C	%read{5,5} %write{5,5}
global	color	opacity	%read{6,6} %write{6,6}
local	float	d	%read{5,6} %write{4,4}
temp	float	$tmp1	%read{4,4} %write{3,3}
temp	float	$tmp2	%read{1,1} %write{0,0}
temp	float	$tmp3	%read{2,2} %write{1,1}
temp	float	$tmp4	%read{3,3} %write{2,2}
const	float	$const2	1		%read{4,4} %write{2147483647,-1}
const	color	$const3	1 1 1		%read{6,6} %write{2147483647,-1}
code ___main___
# D:\\xrt.git\\src\\osl\\shaders\\fog.osl:7
#     C = mix( C, background, d );
	length		$tmp2 I 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\fog.osl"} %line{7} %argrw{"wr"}
	neg		$tmp3 $tmp2 	%argrw{"wr"}
	div		$tmp4 $tmp3 distance 	%argrw{"wrr"}
	exp		$tmp1 $tmp4 	%argrw{"wr"}
	sub		d $const2 $tmp1 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\fog.osl:8
#     opacity = mix( opacity, color (1,1,1), d ); /* background is opaque. */
	mix		C C background d 	%line{8} %argrw{"wrrr"}
# D:\\xrt.git\\src\\osl\\shaders\\fog.osl:9
# }
	mix		opacity opacity $const3 d 	%line{9} %argrw{"wrrr"}
	end
