OpenShadingLanguage 1.00
# Compiled by oslc 1.7.3
# options: -q -O2 -IK:/BlenderGit/blender/intern/cycles/kernel/shaders -o K:/BlenderGit/build_windows_Release_x86_vc12_Release/intern/cycles/kernel/shaders/node_geometry.oso
shader node_geometry
param	normal	NormalIn	0 0 0		%read{2,2} %write{0,0} %initexpr
param	string	bump_offset	"center"		%read{8,38} %write{2147483647,-1}
oparam	point	Position	0 0 0		%read{10,17} %write{1,17} %derivs
oparam	normal	Normal	0 0 0		%read{29,31} %write{2,2}
oparam	normal	Tangent	0 0 0		%read{2147483647,-1} %write{31,32}
oparam	normal	TrueNormal	0 0 0		%read{2147483647,-1} %write{3,3}
oparam	vector	Incoming	0 0 0		%read{2147483647,-1} %write{4,4}
oparam	point	Parametric	0 0 0		%read{12,19} %write{5,19} %derivs
oparam	float	Backfacing	0		%read{2147483647,-1} %write{7,7}
oparam	float	Pointiness	0		%read{36,41} %write{33,41} %derivs
global	point	P	%read{1,1} %write{2147483647,-1} %derivs
global	vector	I	%read{4,4} %write{2147483647,-1}
global	normal	N	%read{0,0} %write{2147483647,-1}
global	normal	Ng	%read{3,3} %write{2147483647,-1}
global	float	u	%read{5,5} %write{2147483647,-1} %derivs
global	float	v	%read{5,5} %write{2147483647,-1} %derivs
global	vector	dPdu	%read{32,32} %write{2147483647,-1}
local	point	generated	%read{22,25} %write{20,20}
local	normal	___639_data	%read{28,28} %write{27,27}
local	vector	___639_T	%read{29,29} %write{28,28}
const	float	$const1	0		%read{5,27} %write{2147483647,-1}
temp	int	$tmp1	%read{7,7} %write{6,6}
const	string	$const2	"dx"		%read{8,34} %write{2147483647,-1}
temp	int	$tmp2	%read{9,9} %write{8,8}
temp	vector	$tmp3	%read{11,11} %write{10,10} %derivs
temp	vector	$tmp4	%read{13,13} %write{12,12} %derivs
const	string	$const3	"dy"		%read{14,38} %write{2147483647,-1}
temp	int	$tmp5	%read{15,15} %write{14,14}
temp	vector	$tmp6	%read{17,17} %write{16,16} %derivs
temp	vector	$tmp7	%read{19,19} %write{18,18} %derivs
temp	int	$tmp8	%read{21,21} %write{20,20}
const	string	$const4	"geom:generated"		%read{20,20} %write{2147483647,-1}
const	int	$const5	1		%read{22,22} %write{2147483647,-1}
temp	float	$tmp9	%read{23,23} %write{22,22}
const	float	$const6	0.5		%read{23,26} %write{2147483647,-1}
temp	float	$tmp10	%read{24,24} %write{23,23}
temp	float	$tmp11	%read{27,27} %write{24,24}
const	int	$const7	0		%read{25,25} %write{2147483647,-1}
temp	float	$tmp12	%read{26,26} %write{25,25}
temp	float	$tmp13	%read{27,27} %write{26,26}
const	string	$const8	"object"		%read{28,28} %write{2147483647,-1}
const	string	$const9	"world"		%read{28,28} %write{2147483647,-1}
temp	vector	$tmp14	%read{31,31} %write{30,30}
temp	vector	$tmp15	%read{30,30} %write{29,29}
temp	int	$tmp16	%read{2147483647,-1} %write{33,33}
const	string	$const10	"geom:pointiness"		%read{33,33} %write{2147483647,-1}
temp	int	$tmp17	%read{35,35} %write{34,34}
temp	float	$tmp18	%read{37,37} %write{36,36} %derivs
temp	int	$tmp19	%read{39,39} %write{38,38}
temp	float	$tmp20	%read{41,41} %write{40,40} %derivs
code NormalIn
# K:/BlenderGit/blender/intern/cycles/kernel/shaders/node_geometry.osl:20
# 	normal NormalIn = N,
	assign		NormalIn N 	%filename{"K:/BlenderGit/blender/intern/cycles/kernel/shaders/node_geometry.osl"} %line{20} %argrw{"wr"}
code ___main___
# K:/BlenderGit/blender/intern/cycles/kernel/shaders/node_geometry.osl:32
# 	Position = P;
	assign		Position P 	%filename{"K:/BlenderGit/blender/intern/cycles/kernel/shaders/node_geometry.osl"} %line{32} %argrw{"wr"}
# K:/BlenderGit/blender/intern/cycles/kernel/shaders/node_geometry.osl:33
# 	Normal = NormalIn;
	assign		Normal NormalIn 	%line{33} %argrw{"wr"}
# K:/BlenderGit/blender/intern/cycles/kernel/shaders/node_geometry.osl:34
# 	TrueNormal = Ng;
	assign		TrueNormal Ng 	%line{34} %argrw{"wr"}
# K:/BlenderGit/blender/intern/cycles/kernel/shaders/node_geometry.osl:35
# 	Incoming = I;
	assign		Incoming I 	%line{35} %argrw{"wr"}
# K:/BlenderGit/blender/intern/cycles/kernel/shaders/node_geometry.osl:36
# 	Parametric = point(u, v, 0.0);
	point		Parametric u v $const1 	%line{36} %argrw{"wrrr"}
# K:/BlenderGit/blender/intern/cycles/kernel/shaders/node_geometry.osl:37
# 	Backfacing = backfacing();
	backfacing	$tmp1 	%line{37} %argrw{"w"}
	assign		Backfacing $tmp1 	%argrw{"wr"}
# K:/BlenderGit/blender/intern/cycles/kernel/shaders/node_geometry.osl:39
# 	if (bump_offset == "dx") {
	eq		$tmp2 bump_offset $const2 	%line{39} %argrw{"wrr"}
	if		$tmp2 14 20 	%argrw{"r"}
# K:/BlenderGit/blender/intern/cycles/kernel/shaders/node_geometry.osl:40
# 		Position += Dx(Position);
	Dx		$tmp3 Position 	%line{40} %argrw{"wr"} %argderivs{1}
	add		Position Position $tmp3 	%argrw{"wrr"}
# K:/BlenderGit/blender/intern/cycles/kernel/shaders/node_geometry.osl:41
# 		Parametric += Dx(Parametric);
	Dx		$tmp4 Parametric 	%line{41} %argrw{"wr"} %argderivs{1}
	add		Parametric Parametric $tmp4 	%argrw{"wrr"}
# K:/BlenderGit/blender/intern/cycles/kernel/shaders/node_geometry.osl:43
# 	else if (bump_offset == "dy") {
	eq		$tmp5 bump_offset $const3 	%line{43} %argrw{"wrr"}
	if		$tmp5 20 20 	%argrw{"r"}
# K:/BlenderGit/blender/intern/cycles/kernel/shaders/node_geometry.osl:44
# 		Position += Dy(Position);
	Dy		$tmp6 Position 	%line{44} %argrw{"wr"} %argderivs{1}
	add		Position Position $tmp6 	%argrw{"wrr"}
# K:/BlenderGit/blender/intern/cycles/kernel/shaders/node_geometry.osl:45
# 		Parametric += Dy(Parametric);
	Dy		$tmp7 Parametric 	%line{45} %argrw{"wr"} %argderivs{1}
	add		Parametric Parametric $tmp7 	%argrw{"wrr"}
# K:/BlenderGit/blender/intern/cycles/kernel/shaders/node_geometry.osl:52
# 	if (getattribute("geom:generated", generated)) {
	getattribute	$tmp8 $const4 generated 	%line{52} %argrw{"wrw"}
	if		$tmp8 32 33 	%argrw{"r"}
# K:/BlenderGit/blender/intern/cycles/kernel/shaders/node_geometry.osl:53
# 		normal data = normal(-(generated[1] - 0.5), (generated[0] - 0.5), 0.0);
	compref		$tmp9 generated $const5 	%line{53} %argrw{"wrr"}
	sub		$tmp10 $tmp9 $const6 	%argrw{"wrr"}
	neg		$tmp11 $tmp10 	%argrw{"wr"}
	compref		$tmp12 generated $const7 	%argrw{"wrr"}
	sub		$tmp13 $tmp12 $const6 	%argrw{"wrr"}
	normal		___639_data $tmp11 $tmp13 $const1 	%argrw{"wrrr"}
# K:/BlenderGit/blender/intern/cycles/kernel/shaders/node_geometry.osl:54
# 		vector T = transform("object", "world", data);
	transformn	___639_T $const8 $const9 ___639_data 	%line{54} %argrw{"wrrr"}
# K:/BlenderGit/blender/intern/cycles/kernel/shaders/node_geometry.osl:55
# 		Tangent = cross(Normal, normalize(cross(T, Normal)));
	cross		$tmp15 ___639_T Normal 	%line{55} %argrw{"wrr"}
	normalize	$tmp14 $tmp15 	%argrw{"wr"}
	cross		Tangent Normal $tmp14 	%argrw{"wrr"}
# K:/BlenderGit/blender/intern/cycles/kernel/shaders/node_geometry.osl:59
# 		Tangent = normalize(dPdu);
	normalize	Tangent dPdu 	%line{59} %argrw{"wr"}
# K:/BlenderGit/blender/intern/cycles/kernel/shaders/node_geometry.osl:62
# 	getattribute("geom:pointiness", Pointiness);
	getattribute	$tmp16 $const10 Pointiness 	%line{62} %argrw{"wrw"}
# K:/BlenderGit/blender/intern/cycles/kernel/shaders/node_geometry.osl:63
# 	if (bump_offset == "dx") {
	eq		$tmp17 bump_offset $const2 	%line{63} %argrw{"wrr"}
	if		$tmp17 38 42 	%argrw{"r"}
# K:/BlenderGit/blender/intern/cycles/kernel/shaders/node_geometry.osl:64
# 		Pointiness += Dx(Pointiness);
	Dx		$tmp18 Pointiness 	%line{64} %argrw{"wr"} %argderivs{1}
	add		Pointiness Pointiness $tmp18 	%argrw{"wrr"}
# K:/BlenderGit/blender/intern/cycles/kernel/shaders/node_geometry.osl:66
# 	else if (bump_offset == "dy") {
	eq		$tmp19 bump_offset $const3 	%line{66} %argrw{"wrr"}
	if		$tmp19 42 42 	%argrw{"r"}
# K:/BlenderGit/blender/intern/cycles/kernel/shaders/node_geometry.osl:67
# 		Pointiness += Dy(Pointiness);
	Dy		$tmp20 Pointiness 	%line{67} %argrw{"wr"} %argderivs{1}
	add		Pointiness Pointiness $tmp20 	%argrw{"wrr"}
	end
