OpenShadingLanguage 1.01
# Compiled by oslc 1.6.2
surface showfacing	%meta{string,description,"Visualize the orientation of surfaces - frontfacing green, backfacing red"} 
param	float	Ka	0.25		%meta{string,description,"Non-directional brightness"} %meta{float,UIsoftmin,0} %meta{float,UIsoftmax,1}  %read{7,7} %write{2147483647,-1}
param	float	Kd	0.75		%meta{string,description,"Directional brightness"} %meta{float,UIsoftmin,0} %meta{float,UIsoftmax,1}  %read{5,5} %write{2147483647,-1}
global	vector	I	%read{0,0} %write{2147483647,-1}
global	normal	N	%read{1,1} %write{2147483647,-1}
global	color	C	%read{8,8} %write{4,8}
global	color	opacity	%read{2147483647,-1} %write{9,9}
local	float	d	%read{3,6} %write{2,2}
temp	vector	$tmp1	%read{2,2} %write{0,0}
temp	normal	$tmp2	%read{2,2} %write{1,1}
const	color	$const1	0 1 0		%read{4,4} %write{2147483647,-1}
const	color	$const2	1 0 0		%read{4,4} %write{2147483647,-1}
temp	float	$tmp5	%read{4,4} %write{3,3}
const	float	$const4	0		%read{3,3} %write{2147483647,-1}
temp	float	$tmp6	%read{6,6} %write{5,5}
temp	float	$tmp7	%read{7,7} %write{6,6}
temp	float	$tmp8	%read{8,8} %write{7,7}
const	int	$const5	1		%read{9,9} %write{2147483647,-1}
code ___main___
# D:\\xrt.git\\src\\osl\\shaders\\showfacing.osl:54
# 
	normalize	$tmp1 I 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\showfacing.osl"} %line{54} %argrw{"wr"}
	normalize	$tmp2 N 	%argrw{"wr"}
	dot		d $tmp1 $tmp2 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\showfacing.osl:57
# 
	step		$tmp5 $const4 d 	%line{57} %argrw{"wrr"}
	mix		C $const1 $const2 $tmp5 	%argrw{"wrrr"}
# D:\\xrt.git\\src\\osl\\shaders\\showfacing.osl:61
#     opacity = 1;
	mul		$tmp6 Kd d 	%line{61} %argrw{"wrr"}
	mul		$tmp7 $tmp6 d 	%argrw{"wrr"}
	add		$tmp8 Ka $tmp7 	%argrw{"wrr"}
	mul		C C $tmp8 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\showfacing.osl:62
# }
	assign		opacity $const5 	%line{62} %argrw{"wr"}
	end
