OpenShadingLanguage 1.01
# Compiled by oslc 1.6.2
surface shownormals	%meta{string,description,"Visualize surface normals"} 
param	string	space	""		%meta{string,description,"Coordinate system"} %meta{string,UItype,"coordsys"}  %read{1,4} %write{2147483647,-1}
param	float	bias	0		%meta{string,description,"Range bias"} %meta{string,UItype,"int"} %meta{float,UImin,-1} %meta{float,UImax,0}  %read{6,10} %write{2147483647,-1}
global	normal	N	%read{0,0} %write{2147483647,-1}
global	color	C	%read{14,14} %write{13,14}
global	color	opacity	%read{14,14} %write{2147483647,-1}
local	normal	NN	%read{4,13} %write{0,12}
const	string	$const1	""		%read{1,1} %write{2147483647,-1}
temp	int	$tmp1	%read{2,2} %write{1,1}
const	string	$const2	"transform"		%read{3,3} %write{2147483647,-1}
const	string	$const3	"common"		%read{4,4} %write{2147483647,-1}
const	int	$const4	0		%read{6,10} %write{2147483647,-1}
temp	int	$tmp2	%read{7,7} %write{6,6}
const	float	$const5	0.5		%read{8,9} %write{2147483647,-1}
temp	normal	$tmp3	%read{9,9} %write{8,8}
temp	int	$tmp4	%read{11,11} %write{10,10}
code ___main___
# D:\\xrt.git\\src\\osl\\shaders\\shownormals.osl:70
#     if (space != "")
	assign		NN N 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\shownormals.osl"} %line{70} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\shownormals.osl:71
#         NN = transform (space, NN);
	neq		$tmp1 space $const1 	%line{71} %argrw{"wrr"}
	if		$tmp1 5 5 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\shownormals.osl:72
#     NN = normalize(NN);
	functioncall	$const2 5 	%line{72} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:247
# vector cross (vector a, vector b) BUILTIN;
	transformn	NN $const3 space NN 	%filename{"D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h"} %line{247} %argrw{"wrrr"}
# D:\\xrt.git\\src\\osl\\shaders\\shownormals.osl:73
# 
	normalize	NN NN 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\shownormals.osl"} %line{73} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\shownormals.osl:75
#         // Color range [0,1] shows full range of normal [-1,1]
	eq		$tmp2 bias $const4 	%line{75} %argrw{"wrr"}
	if		$tmp2 10 13 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\shownormals.osl:77
#     } else if (bias < 0) {
	mul		$tmp3 NN $const5 	%line{77} %argrw{"wrr"}
	add		NN $const5 $tmp3 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\shownormals.osl:78
#         // Color range [0,1] shows negative components of normal
	lt		$tmp4 bias $const4 	%line{78} %argrw{"wrr"}
	if		$tmp4 13 13 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\shownormals.osl:80
#     }
	neg		NN NN 	%line{80} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\shownormals.osl:84
#     C *= opacity;
	assign		C NN 	%line{84} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\shownormals.osl:85
# }
	mul		C C opacity 	%line{85} %argrw{"wrr"}
	end
