Rev | Line | |
---|
[1683] | 1 |
|
---|
| 2 |
|
---|
| 3 | struct VertOut
|
---|
| 4 | {
|
---|
| 5 | float4 hPosition :POSITION;
|
---|
| 6 | float2 texCoord :TEXCOORD;
|
---|
| 7 | };
|
---|
| 8 |
|
---|
| 9 | VertOut vs(float4 position:POSITION,
|
---|
| 10 | float4 texCoord :TEXCOORD,
|
---|
| 11 | uniform float4x4 worldViewProj)
|
---|
| 12 | {
|
---|
| 13 | VertOut OUT;
|
---|
| 14 | OUT.hPosition = mul(worldViewProj, position);
|
---|
| 15 | OUT.texCoord = texCoord;
|
---|
| 16 | return OUT;
|
---|
| 17 |
|
---|
| 18 | }
|
---|
| 19 |
|
---|
| 20 | float4 ps(VertOut IN,
|
---|
| 21 | uniform sampler2D colorTex):COLOR
|
---|
| 22 | {
|
---|
| 23 | float4 Color;
|
---|
| 24 | Color = tex2D(colorTex, IN.texCoord) * 10.0;
|
---|
| 25 | return Color;
|
---|
| 26 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.