OpenShadingLanguage 1.00
# Compiled by oslc 1.10.10
# options: -q -O2 -IC:/b/buildbot-worker-windows/windows_292/blender.git/intern/cycles/kernel/shaders -IC:/b/buildbot-worker-windows/windows_292/blender.git/../lib/win64_vc15/osl/shaders -o C:/b/buildbot-worker-windows/windows_292/build/intern/cycles/kernel/shaders/node_light_falloff.oso
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	___363_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___
# C:/b/buildbot-worker-windows/windows_292/blender.git/intern/cycles/kernel/shaders/node_light_falloff.osl:25
#   float ray_length = 0.0;
	assign		ray_length $const1 	%filename{"C:/b/buildbot-worker-windows/windows_292/blender.git/intern/cycles/kernel/shaders/node_light_falloff.osl"} %line{25} %argrw{"wr"}
# C:/b/buildbot-worker-windows/windows_292/blender.git/intern/cycles/kernel/shaders/node_light_falloff.osl:26
#   float strength = Strength;
	assign		strength Strength 	%line{26} %argrw{"wr"}
# C:/b/buildbot-worker-windows/windows_292/blender.git/intern/cycles/kernel/shaders/node_light_falloff.osl:27
#   getattribute("path:ray_length", ray_length);
	getattribute	$tmp1 $const2 ray_length 	%line{27} %argrw{"wrw"}
# C:/b/buildbot-worker-windows/windows_292/blender.git/intern/cycles/kernel/shaders/node_light_falloff.osl:29
#   if (Smooth > 0.0) {
	gt		$tmp2 Smooth $const1 	%line{29} %argrw{"wrr"}
	if		$tmp2 9 9 	%argrw{"r"}
# C:/b/buildbot-worker-windows/windows_292/blender.git/intern/cycles/kernel/shaders/node_light_falloff.osl:30
#     float squared = ray_length * ray_length;
	mul		___363_squared ray_length ray_length 	%line{30} %argrw{"wrr"}
# C:/b/buildbot-worker-windows/windows_292/blender.git/intern/cycles/kernel/shaders/node_light_falloff.osl:31
#     strength *= squared / (Smooth + squared);
	add		$tmp3 Smooth ___363_squared 	%line{31} %argrw{"wrr"}
	div		$tmp4 ___363_squared $tmp3 	%argrw{"wrr"}
	mul		strength strength $tmp4 	%argrw{"wrr"}
# C:/b/buildbot-worker-windows/windows_292/blender.git/intern/cycles/kernel/shaders/node_light_falloff.osl:35
#   Quadratic = strength;
	assign		Quadratic strength 	%line{35} %argrw{"wr"}
# C:/b/buildbot-worker-windows/windows_292/blender.git/intern/cycles/kernel/shaders/node_light_falloff.osl:38
#   Linear = (strength * ray_length);
	mul		Linear strength ray_length 	%line{38} %argrw{"wrr"}
# C:/b/buildbot-worker-windows/windows_292/blender.git/intern/cycles/kernel/shaders/node_light_falloff.osl:41
#   Constant = (strength * ray_length * ray_length);
	mul		$tmp5 strength ray_length 	%line{41} %argrw{"wrr"}
	mul		Constant $tmp5 ray_length 	%argrw{"wrr"}
	end
