Line | |
---|
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 VS_INPUT
|
---|
15 | {
|
---|
16 | float4 posObj: POSITION;
|
---|
17 | };
|
---|
18 |
|
---|
19 | struct VS_OUTPUT
|
---|
20 | {
|
---|
21 | float4 posScr: POSITION;
|
---|
22 | };
|
---|
23 |
|
---|
24 | ///////////////////////////////////////////////////////////////////////////////
|
---|
25 |
|
---|
26 | const float4x4 matProjView;
|
---|
27 |
|
---|
28 | ///////////////////////////////////////////////////////////////////////////////
|
---|
29 | // Vertexshader
|
---|
30 | // Profile: 1x1
|
---|
31 |
|
---|
32 | VS_OUTPUT main(VS_INPUT input)
|
---|
33 | {
|
---|
34 | VS_OUTPUT output = (VS_OUTPUT)0;
|
---|
35 |
|
---|
36 | output.posScr = mul(input.posObj, matProjView);
|
---|
37 | return output;
|
---|
38 | }
|
---|
39 |
|
---|
40 | ///////////////////////////////////////////////////////////////////////////////
|
---|
Note: See
TracBrowser
for help on using the repository browser.