source: GTP/trunk/App/Demos/Illum/IBRBillboardCloudTrees/OGRE/IBRTreesOGRE/media/general/diffuseTextureScreenAligned_VP20.cg @ 1493

Revision 1493, 681 bytes checked in by igarcia, 18 years ago (diff)
Line 
1void main_vp(
2      float4 position: POSITION,
3      float4 normal: NORMAL,
4      float2 texCoord : TEXCOORD0,
5      float4 colour: COLOR0,
6      out float4 oPosition: POSITION,
7      out float4 oColour: COLOR0,
8      //out float4 oNormal: TEXCOORD1,
9      out float2 oTexCoord : TEXCOORD0,
10      uniform float4x4 worldmatrix,
11      uniform float4x4 viewmatrix,
12      uniform float4x4 projectionmatrix
13      //uniform float4x4 invtransworldview
14      )
15{
16        float4x4 m1 = mul(viewmatrix,worldmatrix);
17        float4x4 m2 = mul(projectionmatrix,m1);
18        oPosition = mul(m2,position);
19        //oNormal = mul(invtransworldview,normal);
20        oColour = colour;
21        oTexCoord = texCoord;
22}
Note: See TracBrowser for help on using the repository browser.