OpenShadingLanguage 1.01
# Compiled by oslc 1.6.2
surface pretexture	%meta{string,description,"Texture map layer that places texture color in C"} 
param	string	texturename	""		%meta{string,description,"Texture map name (empty for no texture)"} %meta{string,UItype,"texture"}  %read{8,10} %write{2147483647,-1}
param	string	projection	"st"		%meta{string,description,"Projection to use"} %meta{string,UItype,"enum:st"}  %read{4,6} %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{10,10} %write{2147483647,-1}
param	string	wrap	"default"		%meta{string,description,"Texture map wrap mode"} %meta{string,UIenabler,"texturename"}  %read{10,10} %write{2147483647,-1}
param	float	s	0		%meta{string,description,"s texture coordinate (defaults to u)"} %meta{string,UIenabler,"texturename"}  %read{2,2} %write{0,0} %derivs %initexpr
param	float	t	0		%meta{string,description,"t texure coordinate (defaults to v)"} %meta{string,UIenabler,"texturename"}  %read{3,3} %write{1,1} %derivs %initexpr
global	float	u	%read{0,0} %write{2147483647,-1} %derivs
global	float	v	%read{1,1} %write{2147483647,-1} %derivs
global	color	C	%read{11,11} %write{11,11}
local	float	ss	%read{10,10} %write{2,2} %derivs
local	float	tt	%read{10,10} %write{3,3} %derivs
local	color	Cnew	%read{11,11} %write{7,10}
const	string	$const1	"st"		%read{4,4} %write{2147483647,-1}
temp	int	$tmp1	%read{5,5} %write{4,4}
const	string	$const2	"unknown projection '%s'\n"		%read{6,6} %write{2147483647,-1}
const	int	$const3	1		%read{7,7} %write{2147483647,-1}
temp	int	$tmp2	%read{9,9} %write{8,8}
const	string	$const4	""		%read{8,8} %write{2147483647,-1}
const	string	$const5	"blur"		%read{10,10} %write{2147483647,-1}
const	string	$const6	"wrap"		%read{10,10} %write{2147483647,-1}
code s
# D:\\xrt.git\\src\\osl\\shaders\\pretexture.osl:69
#     float t = v
	assign		s u 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\pretexture.osl"} %line{69} %argrw{"wr"}
code t
# D:\\xrt.git\\src\\osl\\shaders\\pretexture.osl:72
#   )
	assign		t v 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\pretexture.osl"} %line{72} %argrw{"wr"}
code ___main___
# D:\\xrt.git\\src\\osl\\shaders\\pretexture.osl:75
#     if (projection == "st") {
	assign		ss s 	%filename{"D:\\xrt.git\\src\\osl\\shaders\\pretexture.osl"} %line{75} %argrw{"wr"}
	assign		tt t 	%argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\pretexture.osl:76
#         // Right now, we only support st mapping
	eq		$tmp1 projection $const1 	%line{76} %argrw{"wrr"}
	if		$tmp1 6 7 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\pretexture.osl:79
#     }
	error		$const2 projection 	%line{79} %argrw{"rr"}
# D:\\xrt.git\\src\\osl\\shaders\\pretexture.osl:82
#     if (texturename)
	assign		Cnew $const3 	%line{82} %argrw{"wr"}
# D:\\xrt.git\\src\\osl\\shaders\\pretexture.osl:83
#         Cnew = texture (texturename, ss, tt, "blur", blur, "wrap", wrap);
	neq		$tmp2 texturename $const4 	%line{83} %argrw{"wrr"}
	if		$tmp2 11 11 	%argrw{"r"}
# D:\\xrt.git\\src\\osl\\shaders\\pretexture.osl:84
# 
	texture		Cnew texturename ss tt $const5 blur $const6 wrap 	%line{84} %argrw{"wrrrrrrr"} %argderivs{2,3}
# D:\\xrt.git\\src\\osl\\shaders\\pretexture.osl:86
# }
	mul		C C Cnew 	%line{86} %argrw{"wrr"}
	end
