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 |
|
---|
14 | struct PS_INPUT
|
---|
15 | {
|
---|
16 | float2 mainTexCoord: TEXCOORD0;
|
---|
17 | };
|
---|
18 |
|
---|
19 | ///////////////////////////////////////////////////////////////////////////////
|
---|
20 |
|
---|
21 | sampler tex0: register(s0);
|
---|
22 |
|
---|
23 | ///////////////////////////////////////////////////////////////////////////////
|
---|
24 | // Pixelshader
|
---|
25 | // Profile: 2x0
|
---|
26 |
|
---|
27 | float4 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;
|
---|
34 | return color;
|
---|
35 | }
|
---|
36 |
|
---|
37 | ///////////////////////////////////////////////////////////////////////////////
|
---|
Note: See
TracBrowser
for help on using the repository browser.