OpenShadingLanguage 1.01
# Compiled by oslc 1.6.2
shader texmap	%meta{string,description,"Layer for simple texture mapping"} %meta{float,layer,1} 
param	string	texturename	""		%meta{string,description,"Texture map name (empty for no texture)"} %meta{string,UItype,"texture"}  %read{2,10} %write{2147483647,-1}
param	float	blur	0		%meta{string,description,"Texture map blur"} %meta{float,UImin,0} %meta{float,UIsoftmax,1} %meta{string,UIenabler,"texturename"}  %read{5,10} %write{2147483647,-1}
param	string	wrap	"default"		%meta{string,description,"Texture map wrap mode"} %meta{string,UIenabler,"texturename"}  %read{5,10} %write{2147483647,-1}
param	float	firstchannel	0		%meta{string,description,"Texture channel to start reading for Cout"} %meta{string,UItype,"int"} %meta{float,UImin,0} %meta{string,UIenabler,"texturename"}  %read{4,4} %write{2147483647,-1}
param	float	alphachannel	3		%meta{string,description,"Texture channel to read for aout"} %meta{string,UItype,"int"} %meta{float,UImin,0} %meta{string,UIenabler,"texturename"}  %read{7,9} %write{2147483647,-1}
param	float	s	0		%meta{string,description,"s texture coordinate (defaults to u)"} %meta{string,UIenabler,"texturename"}  %read{5,10} %write{0,0} %derivs %initexpr
param	float	t	0		%meta{string,description,"t texture coordinate (defaults to v)"} %meta{string,UIenabler,"texturename"}  %read{5,10} %write{1,1} %derivs %initexpr
oparam	color	Cout	0 0 0		%meta{string,description,"Color (3 channel) output"}  %read{6,6} %write{5,5}
oparam	float	fout	0		%meta{string,description,"Float (1 channel) output"}  %read{11,11} %write{6,6}
oparam	float	aout	1		%meta{string,description,"Alpha output"}  %read{2147483647,-1} %write{10,11}
global	float	u	%read{0,0} %write{2147483647,-1} %derivs
global	float	v	%read{1,1} %write{2147483647,-1} %derivs
temp	int	$tmp1	%read{3,3} %write{2,2}
const	string	$const1	""		%read{2,2} %write{2147483647,-1}
const	string	$const2	"firstchannel"		%read{5,10} %write{2147483647,-1}
temp	int	$tmp2	%read{5,5} %write{4,4}
const	string	$const3	"blur"		%read{5,10} %write{2147483647,-1}
const	string	$const4	"wrap"		%read{5,10} %write{2147483647,-1}
const	int	$const5	0		%read{6,7} %write{2147483647,-1}
temp	int	$tmp3	%read{8,8} %write{7,7}
temp	int	$tmp4	%read{10,10} %write{9,9}
const	string	$const6	"fill"		%read{10,10} %write{2147483647,-1}
const	int	$const7	1		%read{10,10} %write{2147483647,-1}
code s
# D:\\xrt.git\\src\\osl\\shaders\\texmap.osl:82
#     float t = v
	assign		s u 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\texmap.osl"} %line{82} %argrw{"wr"}
code t
# D:\\xrt.git\\src\\osl\\shaders\\texmap.osl:85
#     output color Cout = 0
	assign		t v 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\texmap.osl"} %line{85} %argrw{"wr"}
code ___main___
# D:\\xrt.git\\src\\osl\\shaders\\texmap.osl:94
#         Cout = texture (texturename, s, t, "firstchannel", (int)firstchannel,
	neq		$tmp1 texturename $const1 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\texmap.osl"} %line{94} %argrw{"wrr"}
	if		$tmp1 12 12 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\texmap.osl:95
#                         "blur", blur, "wrap", wrap);
	assign		$tmp2 firstchannel 	%line{95} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\texmap.osl:96
#         fout = Cout[0];
	texture		Cout texturename s t $const2 $tmp2 $const3 blur $const4 wrap 	%line{96} %argrw{"wrrrrrrrrr"} %argderivs{2,3}
# D:\\xrt.git\\src\\osl\\shaders\\texmap.osl:97
#         if (alphachannel >= 0)
	compref		fout Cout $const5 	%line{97} %argrw{"wrr"}
# D:\\xrt.git\\src\\osl\\shaders\\texmap.osl:98
#             aout = texture (texturename, s, t, "firstchannel", (int)alphachannel,
	ge		$tmp3 alphachannel $const5 	%line{98} %argrw{"wrr"}
	if		$tmp3 11 12 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\texmap.osl:99
#                             "blur", blur, "wrap", wrap, "fill", 1);
	assign		$tmp4 alphachannel 	%line{99} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\texmap.osl:100
#         else aout = fout;
	texture		aout texturename s t $const2 $tmp4 $const3 blur $const4 wrap $const6 $const7 	%line{100} %argrw{"wrrrrrrrrrrr"} %argderivs{2,3}
# D:\\xrt.git\\src\\osl\\shaders\\texmap.osl:101
#     }
	assign		aout fout 	%line{101} %argrw{"wr"}
	end
