/////////////////////////////////////////////////////////////////////////////// // // ## ###### // ###### ### // ## ############### Shark 3D Engine (www.shark3d.com) // ########## # # # // ######## Copyright (c) 1996-2006 Spinor GmbH. // ######### # # # All rights reserved. // ## ########## // ## // /////////////////////////////////////////////////////////////////////////////// struct PS_INPUT { float2 depthScr: TEXCOORD0; }; /////////////////////////////////////////////////////////////////////////////// // Pixelshader // Profile: 2x0 float4 main(PS_INPUT input): COLOR0 { float2 depthScr = input.depthScr; float fragDepth = clamp(depthScr.x / depthScr.y, 0, 1); return fragDepth; } ///////////////////////////////////////////////////////////////////////////////