OpenShadingLanguage 1.00
# Compiled by oslc 1.12.13.0
# options: -q -I/build/openshadinglanguage/src/OpenShadingLanguage-1.12.13.0/src/shaders -I/build/openshadinglanguage/src/OpenShadingLanguage-1.12.13.0/src/shaders -I/build/openshadinglanguage/src/OpenShadingLanguage-1.12.13.0/src/shaders -o /build/openshadinglanguage/src/OpenShadingLanguage-1.12.13.0/build/src/shaders/metal.oso
surface metal	%meta{string,help,"Shiny metallic material"} 
param	float	Ks	1		%meta{string,help,"Specular scaling"} %meta{float,min,0} %meta{float,max,1}  %read{1,1} %write{2147483647,-1}
param	float	eta	10		%meta{string,help,"Index of refraction (controls fresnel effect)"} %meta{float,min,1} %meta{float,max,100}  %read{0,0} %write{2147483647,-1}
param	color	Cs	1 1 1		%meta{string,help,"Base color"} %meta{float,min,0} %meta{float,max,1}  %read{1,1} %write{2147483647,-1}
global	normal	N	%read{0,0} %write{2147483647,-1}
global	closure color	Ci	%read{2147483647,-1} %write{2,2}
temp	closure color	$tmp1	%read{2,2} %write{0,0}
const	string	$const1	"reflection"		%read{0,0} %write{2147483647,-1}
temp	color	$tmp2	%read{2,2} %write{1,1}
code ___main___
# /build/openshadinglanguage/src/OpenShadingLanguage-1.12.13.0/src/shaders/metal.osl:21
#     Ci = Ks * Cs * reflection (N, eta);
	closure		$tmp1 $const1 N eta 	%filename{"/build/openshadinglanguage/src/OpenShadingLanguage-1.12.13.0/src/shaders/metal.osl"} %line{21} %argrw{"wrrr"}
	mul		$tmp2 Ks Cs 	%argrw{"wrr"}
	mul		Ci $tmp1 $tmp2 	%argrw{"wrr"}
	end
