source: GTP/trunk/App/Demos/Illum/Shark3D/version164x12u/IllumDemo/src/res/levelutil/shader/prog/d3d9_hlsl/bloom_bright_d3d9_hlsl_ps2x0.s3d_shadercode @ 2196

Revision 2196, 1.1 KB checked in by szirmay, 17 years ago (diff)
Line 
1///////////////////////////////////////////////////////////////////////////////
2//
3//      ##  ######
4//       ######  ###
5//  ## ###############        Shark 3D Engine (www.shark3d.com)
6//   ########## # # #
7//    ########                Copyright (c) 1996-2006 Spinor GmbH.
8//   ######### # # #          All rights reserved.
9//  ##   ##########
10//      ##
11//
12///////////////////////////////////////////////////////////////////////////////
13
14struct PS_INPUT
15{
16    float2 mainTexCoord: TEXCOORD0;
17};
18
19///////////////////////////////////////////////////////////////////////////////
20
21sampler tex0: register(s0);
22
23///////////////////////////////////////////////////////////////////////////////
24// Pixelshader
25// Profile: 2x0
26
27float4 main(PS_INPUT input): COLOR0
28{
29    float2 mainTexCoord = input.mainTexCoord;
30
31    float4 color = tex2D(tex0, mainTexCoord);
32    float intensity = max(color.x, max(color.y, color.z));
33    color = color * intensity * 0.5;
34   // return 0;
35    return color;
36}
37
38///////////////////////////////////////////////////////////////////////////////
Note: See TracBrowser for help on using the repository browser.