Rev | Line | |
---|
[2453] | 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 |
|
---|
| 19 | struct VS_INPUT
|
---|
| 20 | {
|
---|
| 21 | float4 posView: POSITION;
|
---|
| 22 | };
|
---|
| 23 |
|
---|
| 24 | struct VS_OUTPUT
|
---|
| 25 | {
|
---|
| 26 | float4 posScr: POSITION;
|
---|
| 27 | };
|
---|
| 28 |
|
---|
| 29 | ///////////////////////////////////////////////////////////////////////////////
|
---|
| 30 |
|
---|
| 31 | const float4x4 projMat;
|
---|
| 32 |
|
---|
| 33 | ///////////////////////////////////////////////////////////////////////////////
|
---|
| 34 | // Vertexshader
|
---|
| 35 | // Profile: 1x1
|
---|
| 36 |
|
---|
| 37 | VS_OUTPUT main(VS_INPUT input)
|
---|
| 38 | {
|
---|
| 39 | VS_OUTPUT output = (VS_OUTPUT)0;
|
---|
| 40 |
|
---|
| 41 | // Transform:
|
---|
| 42 | output.posScr = mul(input.posView, projMat);
|
---|
| 43 | return output;
|
---|
| 44 | }
|
---|
| 45 |
|
---|
| 46 | ///////////////////////////////////////////////////////////////////////////////
|
---|
Note: See
TracBrowser
for help on using the repository browser.