<!--
===========================================================================
Copyright 2015 Autodesk, Inc. All rights reserved.

Use of this software is subject to the terms of the Autodesk license
agreement provided at the time of installation or download, or which
otherwise accompanies this software in either electronic or hard copy form.
===========================================================================

Support fragment for mayaTextureOutput support
-->

<fragment uiName="combineMayaTextureOutput" name="combineMayaTextureOutput" type="plumbing" class="ShadeFragment" version="1.0">
	<description><![CDATA[Color with color mask fragment]]></description>
	<properties>
		<float3 name="base" />
		<float name="alpha" />
	</properties>
	<values>
		<float3 name="base" value="0.0,0.0,0.0" />
		<float name="alpha" value="0.0" />
	</values>
	<outputs>
		<struct name="output" struct_name="mayaTextureOutput" />
	</outputs>
	<implementation>
	<implementation render="OGSRenderer" language="Cg" lang_version="2.1">
		<function_name val="combineMayaTextureOutput" />
		<source>
		<![CDATA[
mayaTextureOutput combineMayaTextureOutput(float3 base, float alpha) 
{ 
	mayaTextureOutput result;

	result.outColor = base;
	result.outAlpha = alpha; 

	return result; 
}
		]]>
		</source>
	</implementation>
	<implementation render="OGSRenderer" language="HLSL" lang_version="11.0">
		<function_name val="combineMayaTextureOutput" />
		<source>
		<![CDATA[
mayaTextureOutput combineMayaTextureOutput(float3 base, float alpha)
{ 
	mayaTextureOutput result;

	result.outColor = base;
	result.outAlpha = alpha; 

	return result; 
}
		]]>
		</source>
		</implementation>
		<implementation render="OGSRenderer" language="GLSL" lang_version="3.0">
			<function_name val="combineMayaTextureOutput" />
			<source>
				<![CDATA[
mayaTextureOutput combineMayaTextureOutput(vec3 base, float alpha)
{ 
	mayaTextureOutput result;

	result.outColor = base;
	result.outAlpha = alpha; 

	return result; 
}
		]]>
		</source>
	</implementation>
	</implementation>
</fragment>
