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

Revision 2196, 621 bytes checked in by szirmay, 17 years ago (diff)
Line 
1
2struct PS_INPUT
3{
4    float3 viewVec: TEXCOORD1;
5};
6
7
8struct PS_OUTPUT
9{
10    float4  distance: COLOR0;
11};
12
13///////////////////////////////////////////////////////////////////////////////
14
15sampler tex0: register(s0);
16
17///////////////////////////////////////////////////////////////////////////////
18// Pixelshader
19// Profile: 2x0
20
21PS_OUTPUT main(PS_INPUT input)
22{
23        PS_OUTPUT output;
24        output.distance = float4(length(input.viewVec), 0, 0, 0);
25        //output.distance = float4(1.0,1.0,1.0,1.0) * 4.0;
26        return output;
27}
28
29///////////////////////////////////////////////////////////////////////////////
Note: See TracBrowser for help on using the repository browser.