source: GTP/trunk/App/Demos/Illum/Shark3D/version164x12u/IllumDemo/bin/res/levelutil/shader/prog/d3d9_hlsl/partic_d3d9_hlsl_ps2x0.s3d_shadercode_run @ 2196

Revision 2196, 1.4 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
14#include \
15    <levelutil/shader/prog/d3d9_hlsl/include_stddef_d3d9_hlsl.s3d_shadercode_run>
16
17///////////////////////////////////////////////////////////////////////////////
18
19struct PS_INPUT
20{
21    float2 mainTexCoord: TEXCOORD0;
22    float4 diffuse: COLOR0;
23    float fogCoord: TEXCOORD2;
24};
25
26///////////////////////////////////////////////////////////////////////////////
27
28const float4 paramFog;
29
30sampler tex0: register(s0);
31
32///////////////////////////////////////////////////////////////////////////////
33// Pixelshader
34// Profile: 2x0
35
36float4 main(PS_INPUT input): COLOR0
37{
38    float4 outCol = input.diffuse;
39    float4 texCol0 = tex2D(tex0, input.mainTexCoord);
40    outCol = outCol * texCol0;
41   
42    outCol.rgb = s3d_calcFogExp(
43        outCol.rgb, paramFog.rgb, paramFog.a, input.fogCoord);
44    return outCol;
45}
46
47///////////////////////////////////////////////////////////////////////////////
Note: See TracBrowser for help on using the repository browser.