Rev | Line | |
---|
[2517] | 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 | float4 diffuse: COLOR0;
|
---|
| 17 | float2 mainTexCoord: TEXCOORD0;
|
---|
| 18 | };
|
---|
| 19 |
|
---|
| 20 | ///////////////////////////////////////////////////////////////////////////////
|
---|
| 21 |
|
---|
| 22 | sampler tex0: register(s0);
|
---|
| 23 |
|
---|
| 24 | ///////////////////////////////////////////////////////////////////////////////
|
---|
| 25 | // Pixelshader
|
---|
| 26 | // Profile: 2x0
|
---|
| 27 |
|
---|
| 28 | float4 main(PS_INPUT input): COLOR0
|
---|
| 29 | {
|
---|
| 30 | return tex2D(tex0, input.mainTexCoord) * input.diffuse;
|
---|
| 31 | }
|
---|
| 32 |
|
---|
| 33 | ///////////////////////////////////////////////////////////////////////////////
|
---|
Note: See
TracBrowser
for help on using the repository browser.