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

Revision 1493, 545 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      float2 texCoordProjected : TEXCOORD1,
6
7      out float4 oPosition : POSITION,
8      out float2 otexCoord : TEXCOORD0,
9      out float2 otexCoordProjected : TEXCOORD1,
10
11      uniform float4x4 worldviewproj,
12      uniform float4x4 proj_matrix
13      )
14{
15        oPosition = mul(worldviewproj,position);
16        texCoordProjected = mul(proj_matrix,position);
17        otexCoordProjected = texCoordProjected;
18        otexCoord = texCoord;
19}
Note: See TracBrowser for help on using the repository browser.