/////////////////////////////////////////////////////////////////////////////// // // ## ###### // ###### ### // ## ############### Shark 3D Engine (www.shark3d.com) // ########## # # # // ######## Copyright (c) 1996-2006 Spinor GmbH. // ######### # # # All rights reserved. // ## ########## // ## // /////////////////////////////////////////////////////////////////////////////// #include \ /////////////////////////////////////////////////////////////////////////////// struct VS_INPUT { float4 posObj: POSITION; float2 mainTexCoord: TEXCOORD0; }; struct VS_OUTPUT { float4 posScr: POSITION; float4 diffuse: COLOR0; float2 mainTexCoord: TEXCOORD0; }; /////////////////////////////////////////////////////////////////////////////// const float4x4 projMat; const float4x4 matView; const float4 mtrlEmissive; /////////////////////////////////////////////////////////////////////////////// // Vertexshader // Profile: 2x0 VS_OUTPUT main(VS_INPUT input) { VS_OUTPUT output = (VS_OUTPUT)0; float4 posView = mul(input.posObj,matView); output.posScr = mul(posView, projMat); output.diffuse = mtrlEmissive; output.mainTexCoord = input.mainTexCoord; return output; } ///////////////////////////////////////////////////////////////////////////////