OpenShadingLanguage 1.00
# Compiled by oslc 1.3.0
shader node_light_falloff
param	float	Strength	0 		 %read{1,1} %write{2147483647,-1}
param	float	Smooth	0 		 %read{3,6} %write{2147483647,-1}
oparam	float	Quadratic	0 		 %read{2147483647,-1} %write{9,9}
oparam	float	Linear	0 		 %read{2147483647,-1} %write{10,10}
oparam	float	Constant	0 		 %read{2147483647,-1} %write{12,12}
local	float	ray_length	 %read{5,12} %write{0,2}
local	float	strength	 %read{8,11} %write{1,8}
local	float	___288_squared	 %read{6,7} %write{5,5}
const	float	$const1	0		 %read{0,3} %write{2147483647,-1}
temp	int	$tmp1	 %read{2147483647,-1} %write{2,2}
const	string	$const2	"path:ray_length"		 %read{2,2} %write{2147483647,-1}
temp	int	$tmp2	 %read{4,4} %write{3,3}
temp	float	$tmp3	 %read{7,7} %write{6,6}
temp	float	$tmp4	 %read{8,8} %write{7,7}
temp	float	$tmp5	 %read{12,12} %write{11,11}
code ___main___
# D:\\blender_dev\\code\\265a\\intern\\cycles\\kernel\\shaders\\node_light_falloff.osl:29
# 	float strength = Strength;
	assign		ray_length $const1 	%filename{"D:\\blender_dev\\code\\265a\\intern\\cycles\\kernel\\shaders\\node_light_falloff.osl"} %line{29} %argrw{"wr"}
# D:\\blender_dev\\code\\265a\\intern\\cycles\\kernel\\shaders\\node_light_falloff.osl:30
# 	getattribute("path:ray_length", ray_length);
	assign		strength Strength 	%line{30} %argrw{"wr"}
# D:\\blender_dev\\code\\265a\\intern\\cycles\\kernel\\shaders\\node_light_falloff.osl:31
# 
	getattribute	$tmp1 $const2 ray_length 	%line{31} %argrw{"wrw"}
# D:\\blender_dev\\code\\265a\\intern\\cycles\\kernel\\shaders\\node_light_falloff.osl:33
# 		float squared = ray_length * ray_length;
	gt		$tmp2 Smooth $const1 	%line{33} %argrw{"wrr"}
	if		$tmp2 9 9 	%argrw{"r"}
# D:\\blender_dev\\code\\265a\\intern\\cycles\\kernel\\shaders\\node_light_falloff.osl:34
# 		strength *= squared / (Smooth + squared);
	mul		___288_squared ray_length ray_length 	%line{34} %argrw{"wrr"}
# D:\\blender_dev\\code\\265a\\intern\\cycles\\kernel\\shaders\\node_light_falloff.osl:35
# 	}
	add		$tmp3 Smooth ___288_squared 	%line{35} %argrw{"wrr"}
	div		$tmp4 ___288_squared $tmp3 	%argrw{"wrr"}
	mul		strength strength $tmp4 	%argrw{"wrr"}
# D:\\blender_dev\\code\\265a\\intern\\cycles\\kernel\\shaders\\node_light_falloff.osl:39
# 	
	assign		Quadratic strength 	%line{39} %argrw{"wr"}
# D:\\blender_dev\\code\\265a\\intern\\cycles\\kernel\\shaders\\node_light_falloff.osl:42
# 
	mul		Linear strength ray_length 	%line{42} %argrw{"wrr"}
# D:\\blender_dev\\code\\265a\\intern\\cycles\\kernel\\shaders\\node_light_falloff.osl:45
# }
	mul		$tmp5 strength ray_length 	%line{45} %argrw{"wrr"}
	mul		Constant $tmp5 ray_length 	%argrw{"wrr"}
	end
