/////////////////////////////////////////////////////////////////////////////// // // ## ###### // ###### ### // ## ############### Shark 3D Engine (www.shark3d.com) // ########## # # # // ######## Copyright (c) 1996-2006 Spinor GmbH. // ######### # # # All rights reserved. // ## ########## // ## // /////////////////////////////////////////////////////////////////////////////// struct PS_INPUT { float2 mainTexCoord: TEXCOORD0; }; /////////////////////////////////////////////////////////////////////////////// sampler tex0: register(s0); /////////////////////////////////////////////////////////////////////////////// // Pixelshader // Profile: 2x0 float4 main(PS_INPUT input): COLOR0 { float2 mainTexCoord = input.mainTexCoord; float4 color = tex2D(tex0, mainTexCoord); float intensity = max(color.x, max(color.y, color.z)); color = color * intensity; return color; } ///////////////////////////////////////////////////////////////////////////////