1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #include "global.inc"
- struct VS_IN {
- float4 position : POSITION;
- float2 texcoord : TEXCOORD0;
- float4 normal : NORMAL;
- float4 tangent : TANGENT;
- float4 color : COLOR0;
- };
- struct VS_OUT {
- float4 position : POSITION;
- float4 texcoord0 : TEXCOORD0;
- };
- void main( VS_IN vertex, out VS_OUT result ) {
- float4 position;
- position.x = dot4( vertex.position, rpMVPmatrixX );
- position.y = dot4( vertex.position, rpMVPmatrixY );
- position.z = dot4( vertex.position, rpMVPmatrixZ );
- position.w = dot4( vertex.position, rpMVPmatrixW );
- result.position = position;
- result.texcoord0 = position;
- }
|