OpenShadingLanguage 1.01
# Compiled by oslc 1.6.2
surface maya_bulge
param	float	alphaGain	1		%read{61,61} %write{2147483647,-1}
param	float	alphaIsLuminance	0		%read{48,48} %write{2147483647,-1}
param	float	alphaOffset	0		%read{62,62} %write{2147483647,-1}
param	color	colorGain	1 1 1		%read{59,59} %write{2147483647,-1}
param	color	colorOffset	0 0 0		%read{60,60} %write{2147483647,-1}
param	color	defaultColor	0.5 0.5 0.5		%read{63,63} %write{2147483647,-1}
param	float	invert	0		%read{44,44} %write{2147483647,-1}
param	float	s	0		%read{2,2} %write{0,0} %initexpr
param	float	t	0		%read{3,3} %write{1,1} %initexpr
param	float[2]	uvCoord	0 0		%read{4,5} %write{2,3} %initexpr
param	float[2]	uvFilterSize	0 0		%read{2147483647,-1} %write{2147483647,-1}
param	float	uWidth	0.1		%read{25,27} %write{2147483647,-1}
param	float	vWidth	0.1		%read{32,34} %write{2147483647,-1}
oparam	float	outAlpha	0		%read{42,62} %write{41,64}
oparam	color	outColor	0 0 0		%read{46,60} %write{42,63}
global	float	u	%read{0,0} %write{2147483647,-1}
global	float	v	%read{1,1} %write{2147483647,-1}
local	float	ss	%read{6,29} %write{4,19}
local	float	tt	%read{10,36} %write{5,24}
local	float	___314_a	%read{39,39} %write{31,31}
local	float	___314_b	%read{39,39} %write{38,38}
const	int	$const1	0		%read{2,51} %write{2147483647,-1}
const	int	$const2	1		%read{3,53} %write{2147483647,-1}
temp	float	$tmp1	%read{7,7} %write{6,6}
const	int	$const3	100000		%read{7,11} %write{2147483647,-1}
temp	int	$tmp2	%read{8,8} %write{7,7}
temp	int	$tmp3	%read{9,14} %write{8,13}
temp	float	$tmp4	%read{11,11} %write{10,10}
temp	int	$tmp5	%read{12,12} %write{11,11}
temp	int	$tmp6	%read{13,13} %write{12,12}
const	float	$const4	1.000001		%read{16,23} %write{2147483647,-1}
const	string	$const5	"mod"		%read{15,20} %write{2147483647,-1}
temp	float	$tmp7	%read{18,18} %write{17,17}
temp	float	$tmp8	%read{17,17} %write{16,16}
temp	float	$tmp9	%read{19,19} %write{18,18}
temp	float	$tmp10	%read{23,23} %write{22,22}
temp	float	$tmp11	%read{22,22} %write{21,21}
temp	float	$tmp12	%read{24,24} %write{23,23}
temp	float	$tmp13	%read{31,31} %write{26,26}
const	int	$const6	2		%read{56,56} %write{2147483647,-1}
temp	float	$tmp14	%read{26,26} %write{25,25}
const	float	$const7	2		%read{25,34} %write{2147483647,-1}
const	float	$const8	0.5		%read{26,36} %write{2147483647,-1}
temp	float	$tmp15	%read{30,30} %write{29,29}
temp	float	$tmp16	%read{28,28} %write{27,27}
temp	float	$tmp17	%read{29,29} %write{28,28}
const	float	$const9	1		%read{28,64} %write{2147483647,-1}
temp	float	$tmp18	%read{31,31} %write{30,30}
temp	float	$tmp19	%read{38,38} %write{33,33}
temp	float	$tmp20	%read{33,33} %write{32,32}
temp	float	$tmp21	%read{37,37} %write{36,36}
temp	float	$tmp22	%read{35,35} %write{34,34}
temp	float	$tmp23	%read{36,36} %write{35,35}
temp	float	$tmp24	%read{38,38} %write{37,37}
temp	float	$tmp25	%read{41,41} %write{40,40}
temp	float	$tmp26	%read{40,40} %write{39,39}
const	string	$const10	"colorBalance"		%read{43,43} %write{2147483647,-1}
const	float	$const11	0		%read{44,48} %write{2147483647,-1}
temp	int	$tmp27	%read{45,45} %write{44,44}
temp	int	$tmp28	%read{49,49} %write{48,48}
const	string	$const12	"luminance"		%read{50,50} %write{2147483647,-1}
const	float	$const13	0.30000001		%read{52,52} %write{2147483647,-1}
temp	float	$tmp29	%read{52,52} %write{51,51}
temp	float	$tmp30	%read{55,55} %write{52,52}
const	float	$const14	0.58999997		%read{54,54} %write{2147483647,-1}
temp	float	$tmp31	%read{54,54} %write{53,53}
temp	float	$tmp32	%read{55,55} %write{54,54}
temp	float	$tmp33	%read{58,58} %write{55,55}
const	float	$const15	0.11		%read{57,57} %write{2147483647,-1}
temp	float	$tmp34	%read{57,57} %write{56,56}
temp	float	$tmp35	%read{58,58} %write{57,57}
code s
# D:\\xrt.git\\src\\osl\\shaders\\maya_bulge.osl:15
# 	float uvCoord[2] = {s, t},
	assign		s u 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\maya_bulge.osl"} %line{15} %argrw{"wr"}
code t
# D:\\xrt.git\\src\\osl\\shaders\\maya_bulge.osl:15
# 	float uvCoord[2] = {s, t},
	assign		t v 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\maya_bulge.osl"} %line{15} %argrw{"wr"}
code uvCoord
# D:\\xrt.git\\src\\osl\\shaders\\maya_bulge.osl:16
# 	float uvFilterSize[2] = {0, 0},
	aassign		uvCoord $const1 s 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\maya_bulge.osl"} %line{16} %argrw{"wrr"}
	aassign		uvCoord $const2 t 	%argrw{"wrr"}
code ___main___
# D:\\xrt.git\\src\\osl\\shaders\\maya_bulge.osl:27
# 	float tt = uvCoord[1];
	aref		ss uvCoord $const1 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\maya_bulge.osl"} %line{27} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_bulge.osl:28
# 
	aref		tt uvCoord $const2 	%line{28} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_bulge.osl:30
# 	{
	abs		$tmp1 ss 	%line{30} %argrw{"wr"}
	lt		$tmp2 $tmp1 $const3 	%argrw{"wrr"}
	neq		$tmp3 $tmp2 $const1 	%argrw{"wrr"}
	if		$tmp3 14 14 	%argrw{"r"}
	abs		$tmp4 tt 	%argrw{"wr"}
	lt		$tmp5 $tmp4 $const3 	%argrw{"wrr"}
	neq		$tmp6 $tmp5 $const1 	%argrw{"wrr"}
	assign		$tmp3 $tmp6 	%argrw{"wr"}
	if		$tmp3 63 65 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_bulge.osl:32
# 		tt = mod(tt, WRAPMAX);
	functioncall	$const5 20 	%line{32} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:135
# PERCOMP1 (log)
	div		$tmp8 ss $const4 	%filename{"D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h"} %line{135} %argrw{"wrr"}
	floor		$tmp7 $tmp8 	%argrw{"wr"}
	mul		$tmp9 $const4 $tmp7 	%argrw{"wrr"}
	sub		ss ss $tmp9 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_bulge.osl:33
#     
	functioncall	$const5 25 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\maya_bulge.osl"} %line{33} %argrw{"r"}
# D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h:135
# PERCOMP1 (expm1)
	div		$tmp11 tt $const4 	%filename{"D:/xrt.git\\build\\vc10\\Win32\\Release\\shaders\\stdosl.h"} %line{135} %argrw{"wrr"}
	floor		$tmp10 $tmp11 	%argrw{"wr"}
	mul		$tmp12 $const4 $tmp10 	%argrw{"wrr"}
	sub		tt tt $tmp12 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_bulge.osl:35
# 		(1 - smoothstep(0.5, 1 - (uWidth / 2), ss));
	div		$tmp14 uWidth $const7 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\maya_bulge.osl"} %line{35} %argrw{"wrr"}
	smoothstep	$tmp13 $tmp14 $const8 ss 	%argrw{"wrrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_bulge.osl:36
# 		float b = smoothstep(vWidth / 2, .5, tt) * 
	div		$tmp16 uWidth $const7 	%line{36} %argrw{"wrr"}
	sub		$tmp17 $const9 $tmp16 	%argrw{"wrr"}
	smoothstep	$tmp15 $const8 $tmp17 ss 	%argrw{"wrrr"}
	sub		$tmp18 $const9 $tmp15 	%argrw{"wrr"}
	mul		___314_a $tmp13 $tmp18 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_bulge.osl:37
# 		(1 - smoothstep(0.5, 1 - (vWidth / 2), tt));
	div		$tmp20 vWidth $const7 	%line{37} %argrw{"wrr"}
	smoothstep	$tmp19 $tmp20 $const8 tt 	%argrw{"wrrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_bulge.osl:38
# 		outAlpha = sqrt(abs(a * b));
	div		$tmp22 vWidth $const7 	%line{38} %argrw{"wrr"}
	sub		$tmp23 $const9 $tmp22 	%argrw{"wrr"}
	smoothstep	$tmp21 $const8 $tmp23 tt 	%argrw{"wrrr"}
	sub		$tmp24 $const9 $tmp21 	%argrw{"wrr"}
	mul		___314_b $tmp19 $tmp24 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_bulge.osl:39
# 		outColor = color(outAlpha);
	mul		$tmp26 ___314_a ___314_b 	%line{39} %argrw{"wrr"}
	abs		$tmp25 $tmp26 	%argrw{"wr"}
	sqrt		outAlpha $tmp25 	%argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_bulge.osl:40
# 
	assign		outColor outAlpha 	%line{40} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_bulge.osl:49
# 	}
	functioncall	$const10 63 	%line{49} %argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\utils.h:107
#     float x1 = x0+w;
	neq		$tmp27 invert $const11 	%filename{"D:/xrt.git\\src\\osl\\shaders\\utils.h"} %line{107} %argrw{"wrr"}
	if		$tmp27 48 48 	%argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\utils.h:109
# 
	sub		outColor $const9 outColor 	%line{109} %argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\utils.h:110
# 	/* Definite integral of normalized pulsetrain from 0 to t */
	sub		outAlpha $const9 outAlpha 	%line{110} %argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\utils.h:113
#     }
	neq		$tmp28 alphaIsLuminance $const11 	%line{113} %argrw{"wrr"}
	if		$tmp28 59 59 	%argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\utils.h:115
# 	float result;
	functioncall	$const12 59 	%line{115} %argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\utils.h:18
# 		0.3 * i_color[0] + 
	compref		$tmp29 outColor $const1 	%line{18} %argrw{"wrr"}
	mul		$tmp30 $const13 $tmp29 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\utils.h:19
# 		0.59 * i_color[1] + 
	compref		$tmp31 outColor $const2 	%line{19} %argrw{"wrr"}
	mul		$tmp32 $const14 $tmp31 	%argrw{"wrr"}
	add		$tmp33 $tmp30 $tmp32 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\utils.h:20
# 		0.11 * i_color[2];
	compref		$tmp34 outColor $const6 	%line{20} %argrw{"wrr"}
	mul		$tmp35 $const15 $tmp34 	%argrw{"wrr"}
	add		outAlpha $tmp33 $tmp35 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\utils.h:118
# 	io_outColor *= i_colorGain;
	mul		outColor outColor colorGain 	%line{118} %argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\utils.h:119
# 	io_outColor += i_colorOffset;
	add		outColor outColor colorOffset 	%line{119} %argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\utils.h:121
# 	io_outAlpha *= i_alphaGain;
	mul		outAlpha outAlpha alphaGain 	%line{121} %argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\utils.h:122
# 	io_outAlpha += i_alphaOffset;
	add		outAlpha outAlpha alphaOffset 	%line{122} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_bulge.osl:53
# 		outAlpha = 1.0;
	assign		outColor defaultColor 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\maya_bulge.osl"} %line{53} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_bulge.osl:54
# 	}
	assign		outAlpha $const9 	%line{54} %argrw{"wr"}
	end
