<!--
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="xgenVSPw" name="xgenVSPw" type="interpolant" class="ShadeFragment" version="1.0" feature_level="0" >
    <description>
        <![CDATA[
Generate vertex position in world space for xgen splines.]]>
    </description>
    <properties>
        <float3  name="PmFinal" flags="varyingInputParam" />
        <float4x4  name="world" semantic="world" />
    </properties>
    <values>
    </values>
    <outputs>
        <float3  name="pw" semantic="TEXCOORD6" />
    </outputs>
    <implementation>
        <implementation  render="OGSRenderer" language="Cg" lang_version="2.100000" >
            <function_name val="xgenVSPw" />
            <vertex_source>
                <![CDATA[
float3 ixgenVSPw(float3 PmFinal, float4x4 world)
{
    return mul(world, float4(PmFinal, 1.0f)).xyz;
}
                ]]>
            </vertex_source>
            <source>
                <![CDATA[
float3 xgenVSPw(float3 ipw)
{
    return ipw;
}
               ]]>
             </source>
        </implementation>
        <implementation  render="OGSRenderer" language="HLSL" lang_version="11.000000" >
            <function_name val="xgenVSPw" />
            <vertex_source>
                <![CDATA[
float3 ixgenVSPw(float3 PmFinal, float4x4 world)
{
    return mul(float4(PmFinal, 1.0f), world).xyz;
}
                ]]>
            </vertex_source>
            <source>
                <![CDATA[
float3 xgenVSPw(float3 ipw)
{
    return ipw;
}
               ]]>
            </source>
        </implementation>
        <implementation  render="OGSRenderer" language="HLSL" lang_version="10.000000" >
            <function_name val="xgenVSPw" />
            <vertex_source>
                <![CDATA[
float3 ixgenVSPw(float3 PmFinal, float4x4 world)
{
    return mul(float4(PmFinal, 1.0f), world).xyz;
}
                ]]>
            </vertex_source>
            <source>
                <![CDATA[
float3 xgenVSPw(float3 ipw)
{
    return ipw;
}
               ]]>
            </source>
        </implementation>
    </implementation>
</fragment>