Line | |
---|
1 |
|
---|
2 | struct PS_INPUT
|
---|
3 | {
|
---|
4 | float3 viewVec: TEXCOORD1;
|
---|
5 | };
|
---|
6 |
|
---|
7 |
|
---|
8 | struct PS_OUTPUT
|
---|
9 | {
|
---|
10 | float4 distance: COLOR0;
|
---|
11 | };
|
---|
12 |
|
---|
13 | ///////////////////////////////////////////////////////////////////////////////
|
---|
14 |
|
---|
15 | sampler tex0: register(s0);
|
---|
16 |
|
---|
17 | ///////////////////////////////////////////////////////////////////////////////
|
---|
18 | // Pixelshader
|
---|
19 | // Profile: 2x0
|
---|
20 |
|
---|
21 | PS_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.