<!--
Copyright 2013 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.
-->
<fragment  uiName="xgenFloat3FromFloat4" name="xgenFloat3FromFloat4" type="plumbing" class="ShadeFragment" version="1.0" feature_level="0" >
    <description>
<![CDATA[
Convert float4 to float3.]]>
</description>
    <properties>
        <float4  name="input" />
    </properties>
    <values>
    </values>
    <outputs>
        <float3  name="output" />
    </outputs>
    <implementation  >
    <implementation  render="OGSRenderer" language="Cg" lang_version="2.100000" >
        <function_name val="xgenFloat3FromFloat4" />
        <source>
            <![CDATA[
float3 xgenFloat3FromFloat4(float4 input) 
{
	return input.xyz;
} 
            ]]>
        </source>
    </implementation>
    <implementation  render="OGSRenderer" language="HLSL" lang_version="11.000000" >
        <function_name val="xgenFloat3FromFloat4" />
        <source>
            <![CDATA[
float3 xgenFloat3FromFloat4(float4 input) 
{
	return input.xyz;
} 
            ]]>
        </source>
    </implementation>
    <implementation  render="OGSRenderer" language="HLSL" lang_version="10.000000" >
        <function_name val="xgenFloat3FromFloat4" />
        <source>
            <![CDATA[
float3 xgenFloat3FromFloat4(float4 input) 
{
	return input.xyz;
}  
            ]]>
        </source>
    </implementation>
    </implementation>
</fragment>
