OpenShadingLanguage 1.00
# Compiled by oslc 1.11.17
# options: -q -O2 -I/build/blender/src/blender/intern/cycles/kernel/osl/shaders -I/usr/share/OSL/shaders -o /build/blender/src/blender/build/intern/cycles/kernel/osl/shaders/node_diffuse_bsdf.oso
shader node_diffuse_bsdf
param	color	Color	0.800000012 0.800000012 0.800000012		%read{4,6} %write{2147483647,-1}
param	float	Roughness	0		%read{1,5} %write{2147483647,-1}
param	normal	Normal	0 0 0		%read{3,5} %write{0,0} %initexpr
oparam	closure color	BSDF			%read{2147483647,-1} %write{4,6}
global	normal	N	%read{0,0} %write{2147483647,-1}
const	float	$const1	0		%read{1,1} %write{2147483647,-1}
temp	int	$tmp1	%read{2,2} %write{1,1}
temp	closure color	$tmp2	%read{4,4} %write{3,3}
const	string	$const2	"diffuse"		%read{3,3} %write{2147483647,-1}
temp	closure color	$tmp3	%read{6,6} %write{5,5}
const	string	$const3	"oren_nayar"		%read{5,5} %write{2147483647,-1}
code Normal
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_diffuse_bsdf.osl:8
#                          normal Normal = N,
	assign		Normal N 	%filename{"/build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_diffuse_bsdf.osl"} %line{8} %argrw{"wr"}
code ___main___
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_diffuse_bsdf.osl:11
#   if (Roughness == 0.0)
	eq		$tmp1 Roughness $const1 	%filename{"/build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_diffuse_bsdf.osl"} %line{11} %argrw{"wrr"}
	if		$tmp1 5 7 	%argrw{"r"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_diffuse_bsdf.osl:12
#     BSDF = Color * diffuse(Normal);
	closure		$tmp2 $const2 Normal 	%line{12} %argrw{"wrr"}
	mul		BSDF $tmp2 Color 	%argrw{"wrr"}
# /build/blender/src/blender/intern/cycles/kernel/osl/shaders/node_diffuse_bsdf.osl:14
#     BSDF = Color * oren_nayar(Normal, Roughness);
	closure		$tmp3 $const3 Normal Roughness 	%line{14} %argrw{"wrrr"}
	mul		BSDF $tmp3 Color 	%argrw{"wrr"}
	end
