OpenShadingLanguage 1.01
# Compiled by oslc 1.6.2
surface maya_file
param	float	alphaGain	1		%read{78,78} %write{2147483647,-1}
param	float	alphaIsLuminance	0		%read{65,65} %write{2147483647,-1}
param	float	alphaOffset	0		%read{79,79} %write{2147483647,-1}
param	color	colorGain	1 1 1		%read{76,76} %write{2147483647,-1}
param	color	colorOffset	0 0 0		%read{77,77} %write{2147483647,-1}
param	color	defaultColor	0.5 0.5 0.5		%read{80,80} %write{2147483647,-1}
param	string	fileTextureName	""		%read{5,50} %write{2147483647,-1}
param	float	filterType	1		%read{15,15} %write{2147483647,-1}
param	float	filter	1		%read{17,17} %write{2147483647,-1}
param	float	filterOffset	0		%read{29,50} %write{2147483647,-1}
param	float	invert	0		%read{61,61} %write{2147483647,-1}
param	float[2]	uvCoord	0 0		%read{2,3} %write{0,1} %derivs %initexpr
param	float	wrapU	1		%read{21,46} %write{2147483647,-1}
param	float	wrapV	1		%read{2147483647,-1} %write{2147483647,-1}
param	float[2]	repeatUV	1 1		%read{2147483647,-1} %write{2147483647,-1}
param	float	__outsideFrame	0		%read{2147483647,-1} %write{2147483647,-1}
param	float[2]	uvFilterSize	0 0		%read{2147483647,-1} %write{2147483647,-1}
oparam	float	outAlpha	0		%read{64,84} %write{50,81}
oparam	color	outColor	0 0 0		%read{52,77} %write{30,80}
oparam	color	outTransparency	0 0 0		%read{2147483647,-1} %write{85,85}
global	float	u	%read{0,0} %write{2147483647,-1} %derivs
global	float	v	%read{1,1} %write{2147483647,-1} %derivs
local	float	ss	%read{6,50} %write{2,2} %derivs
local	float	tt	%read{10,50} %write{4,4} %derivs
local	int	num_channels	%read{19,40} %write{5,5}
local	float	___314_filterWidth	%read{29,50} %write{17,18}
const	int	$const1	0		%read{0,68} %write{2147483647,-1}
const	int	$const2	1		%read{1,70} %write{2147483647,-1}
temp	float	$tmp1	%read{4,4} %write{3,3} %derivs
const	float	$const3	1		%read{4,84} %write{2147483647,-1}
temp	int	$tmp2	%read{2147483647,-1} %write{5,5}
const	string	$const4	"channels"		%read{5,5} %write{2147483647,-1}
temp	float	$tmp3	%read{7,7} %write{6,6}
const	int	$const5	100000		%read{7,11} %write{2147483647,-1}
temp	int	$tmp4	%read{8,8} %write{7,7}
temp	int	$tmp5	%read{9,14} %write{8,13}
temp	float	$tmp6	%read{11,11} %write{10,10}
temp	int	$tmp7	%read{12,12} %write{11,11}
temp	int	$tmp8	%read{13,13} %write{12,12}
temp	int	$tmp9	%read{16,16} %write{15,15}
temp	int	$tmp10	%read{20,20} %write{19,19}
temp	float	$tmp11	%read{30,30} %write{29,29}
const	string	$const6	"blur"		%read{29,50} %write{2147483647,-1}
const	string	$const7	"width"		%read{29,50} %write{2147483647,-1}
const	string	$const8	"swrap"		%read{29,50} %write{2147483647,-1}
temp	string	$tmp12	%read{29,29} %write{23,24}
temp	int	$tmp13	%read{22,22} %write{21,21}
const	string	$const9	"periodic"		%read{23,48} %write{2147483647,-1}
const	string	$const10	"default"		%read{24,49} %write{2147483647,-1}
const	string	$const11	"twrap"		%read{29,50} %write{2147483647,-1}
temp	string	$tmp14	%read{29,29} %write{27,28}
temp	int	$tmp15	%read{26,26} %write{25,25}
temp	string	$tmp16	%read{39,39} %write{33,34}
temp	int	$tmp17	%read{32,32} %write{31,31}
temp	string	$tmp18	%read{39,39} %write{37,38}
temp	int	$tmp19	%read{36,36} %write{35,35}
const	int	$const12	3		%read{40,50} %write{2147483647,-1}
temp	int	$tmp20	%read{41,41} %write{40,40}
const	string	$const13	"firstchannel"		%read{50,50} %write{2147483647,-1}
temp	string	$tmp21	%read{50,50} %write{44,45}
temp	int	$tmp22	%read{43,43} %write{42,42}
temp	string	$tmp23	%read{50,50} %write{48,49}
temp	int	$tmp24	%read{47,47} %write{46,46}
const	string	$const14	"luminance"		%read{51,67} %write{2147483647,-1}
const	float	$const15	0.30000001		%read{53,69} %write{2147483647,-1}
temp	float	$tmp25	%read{53,53} %write{52,52}
temp	float	$tmp26	%read{56,56} %write{53,53}
const	float	$const16	0.58999997		%read{55,71} %write{2147483647,-1}
temp	float	$tmp27	%read{55,55} %write{54,54}
temp	float	$tmp28	%read{56,56} %write{55,55}
temp	float	$tmp29	%read{59,59} %write{56,56}
const	float	$const17	0.11		%read{58,74} %write{2147483647,-1}
const	int	$const18	2		%read{57,73} %write{2147483647,-1}
temp	float	$tmp30	%read{58,58} %write{57,57}
temp	float	$tmp31	%read{59,59} %write{58,58}
const	string	$const19	"colorBalance"		%read{60,60} %write{2147483647,-1}
const	float	$const20	0		%read{61,65} %write{2147483647,-1}
temp	int	$tmp32	%read{62,62} %write{61,61}
temp	int	$tmp33	%read{66,66} %write{65,65}
temp	float	$tmp34	%read{69,69} %write{68,68}
temp	float	$tmp35	%read{72,72} %write{69,69}
temp	float	$tmp36	%read{71,71} %write{70,70}
temp	float	$tmp37	%read{72,72} %write{71,71}
temp	float	$tmp38	%read{75,75} %write{72,72}
temp	float	$tmp39	%read{74,74} %write{73,73}
temp	float	$tmp40	%read{75,75} %write{74,74}
temp	float	$tmp41	%read{85,85} %write{82,82}
temp	float	$tmp42	%read{85,85} %write{83,83}
temp	float	$tmp43	%read{85,85} %write{84,84}
code uvCoord
# D:\\xrt.git\\src\\osl\\shaders\\maya_file.osl:19
# 	float wrapU = 1,
	aassign		uvCoord $const1 u 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\maya_file.osl"} %line{19} %argrw{"wrr"}
	aassign		uvCoord $const2 v 	%argrw{"wrr"}
code ___main___
# D:\\xrt.git\\src\\osl\\shaders\\maya_file.osl:33
# 	float tt = 1 - uvCoord[1];
	aref		ss uvCoord $const1 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\maya_file.osl"} %line{33} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_file.osl:34
# 
	aref		$tmp1 uvCoord $const2 	%line{34} %argrw{"wrr"}
	sub		tt $const3 $tmp1 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_file.osl:37
# 
	gettextureinfo	$tmp2 fileTextureName $const4 num_channels 	%line{37} %argrw{"wrrw"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_file.osl:39
# 	{
	abs		$tmp3 ss 	%line{39} %argrw{"wr"}
	lt		$tmp4 $tmp3 $const5 	%argrw{"wrr"}
	neq		$tmp5 $tmp4 $const1 	%argrw{"wrr"}
	if		$tmp5 14 14 	%argrw{"r"}
	abs		$tmp6 tt 	%argrw{"wr"}
	lt		$tmp7 $tmp6 $const5 	%argrw{"wrr"}
	neq		$tmp8 $tmp7 $const1 	%argrw{"wrr"}
	assign		$tmp5 $tmp8 	%argrw{"wr"}
	if		$tmp5 80 82 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_file.osl:41
#     
	gt		$tmp9 filterType $const1 	%line{41} %argrw{"wrr"}
	if		$tmp9 18 19 	%argrw{"r"}
	assign		___314_filterWidth filter 	%argrw{"wr"}
	assign		___314_filterWidth $const1 	%argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_file.osl:43
# 		{
	eq		$tmp10 num_channels $const2 	%line{43} %argrw{"wrr"}
	if		$tmp10 31 40 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_file.osl:48
# 		} else {
	eq		$tmp13 wrapU $const2 	%line{48} %argrw{"wrr"}
	if		$tmp13 24 25 	%argrw{"r"}
	assign		$tmp12 $const9 	%argrw{"wr"}
	assign		$tmp12 $const10 	%argrw{"wr"}
	eq		$tmp15 wrapU $const2 	%argrw{"wrr"}
	if		$tmp15 28 29 	%argrw{"r"}
	assign		$tmp14 $const9 	%argrw{"wr"}
	assign		$tmp14 $const10 	%argrw{"wr"}
	texture		$tmp11 fileTextureName ss tt $const6 filterOffset $const7 ___314_filterWidth $const8 $tmp12 $const11 $tmp14 	%argrw{"wrrrrrrrrrrr"} %argderivs{2,3}
	assign		outColor $tmp11 	%argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_file.osl:51
# 		}
	eq		$tmp17 wrapU $const2 	%line{51} %argrw{"wrr"}
	if		$tmp17 34 35 	%argrw{"r"}
	assign		$tmp16 $const9 	%argrw{"wr"}
	assign		$tmp16 $const10 	%argrw{"wr"}
	eq		$tmp19 wrapU $const2 	%argrw{"wrr"}
	if		$tmp19 38 39 	%argrw{"r"}
	assign		$tmp18 $const9 	%argrw{"wr"}
	assign		$tmp18 $const10 	%argrw{"wr"}
	texture		outColor fileTextureName ss tt $const6 filterOffset $const7 ___314_filterWidth $const8 $tmp16 $const11 $tmp18 	%argrw{"wrrrrrrrrrrr"} %argderivs{2,3}
# D:\\xrt.git\\src\\osl\\shaders\\maya_file.osl:54
# 		{
	gt		$tmp20 num_channels $const12 	%line{54} %argrw{"wrr"}
	if		$tmp20 51 60 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_file.osl:57
# 		} else {
	eq		$tmp22 wrapU $const2 	%line{57} %argrw{"wrr"}
	if		$tmp22 45 46 	%argrw{"r"}
	assign		$tmp21 $const9 	%argrw{"wr"}
	assign		$tmp21 $const10 	%argrw{"wr"}
	eq		$tmp24 wrapU $const2 	%argrw{"wrr"}
	if		$tmp24 49 50 	%argrw{"r"}
	assign		$tmp23 $const9 	%argrw{"wr"}
	assign		$tmp23 $const10 	%argrw{"wr"}
	texture		outAlpha fileTextureName ss tt $const6 filterOffset $const13 $const12 $const7 ___314_filterWidth $const8 $tmp21 $const11 $tmp23 	%argrw{"wrrrrrrrrrrrrr"} %argderivs{2,3}
# D:\\xrt.git\\src\\osl\\shaders\\maya_file.osl:59
# 		}
	functioncall	$const14 60 	%line{59} %argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\utils.h:18
# 		0.3 * i_color[0] + 
	compref		$tmp25 outColor $const1 	%filename{"D:/xrt.git\\src\\osl\\shaders\\utils.h"} %line{18} %argrw{"wrr"}
	mul		$tmp26 $const15 $tmp25 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\utils.h:19
# 		0.59 * i_color[1] + 
	compref		$tmp27 outColor $const2 	%line{19} %argrw{"wrr"}
	mul		$tmp28 $const16 $tmp27 	%argrw{"wrr"}
	add		$tmp29 $tmp26 $tmp28 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\utils.h:20
# 		0.11 * i_color[2];
	compref		$tmp30 outColor $const18 	%line{20} %argrw{"wrr"}
	mul		$tmp31 $const17 $tmp30 	%argrw{"wrr"}
	add		outAlpha $tmp29 $tmp31 	%argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_file.osl:69
# 			outColor = texture(fileTextureName, ss, tt, "blur", filterOffset, 
	functioncall	$const19 80 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\maya_file.osl"} %line{69} %argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\utils.h:107
# color
	neq		$tmp32 invert $const20 	%filename{"D:/xrt.git\\src\\osl\\shaders\\utils.h"} %line{107} %argrw{"wrr"}
	if		$tmp32 65 65 	%argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\utils.h:109
# {
	sub		outColor $const3 outColor 	%line{109} %argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\utils.h:110
# 	return abs (i_color);
	sub		outAlpha $const3 outAlpha 	%line{110} %argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\utils.h:113
# /* Taken from ARMAN */
	neq		$tmp33 alphaIsLuminance $const20 	%line{113} %argrw{"wrr"}
	if		$tmp33 76 76 	%argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\utils.h:115
# {
	functioncall	$const14 76 	%line{115} %argrw{"r"}
# D:/xrt.git\\src\\osl\\shaders\\utils.h:18
# 		0.3 * i_color[0] + 
	compref		$tmp34 outColor $const1 	%line{18} %argrw{"wrr"}
	mul		$tmp35 $const15 $tmp34 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\utils.h:19
# 		0.59 * i_color[1] + 
	compref		$tmp36 outColor $const2 	%line{19} %argrw{"wrr"}
	mul		$tmp37 $const16 $tmp36 	%argrw{"wrr"}
	add		$tmp38 $tmp35 $tmp37 	%argrw{"wrr"}
# D:/xrt.git\\src\\osl\\shaders\\utils.h:20
# 		0.11 * i_color[2];
	compref		$tmp39 outColor $const18 	%line{20} %argrw{"wrr"}
	mul		$tmp40 $const17 $tmp39 	%argrw{"wrr"}
	add		outAlpha $tmp38 $tmp40 	%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_file.osl:73
# 		outAlpha = 1.0;
	assign		outColor defaultColor 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\maya_file.osl"} %line{73} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_file.osl:74
# 	}
	assign		outAlpha $const3 	%line{74} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\maya_file.osl:77
# }
	sub		$tmp41 $const3 outAlpha 	%line{77} %argrw{"wrr"}
	sub		$tmp42 $const3 outAlpha 	%argrw{"wrr"}
	sub		$tmp43 $const3 outAlpha 	%argrw{"wrr"}
	color		outTransparency $tmp41 $tmp42 $tmp43 	%argrw{"wrrr"}
	end
