home *** CD-ROM | disk | FTP | other *** search
- // This is a simple vertex shader for passing screen
- // coordinates unchanged to the fragment shader
-
- // holds nothing but 3d position
- struct a2vConnector : application2vertex {
- float3 coord:ATTR0;
- float2 texcoord:ATTR1;
- };
-
- // holds nothing but 3d position
- struct v2fConnector : vertex2fragment {
- float3 coord:HPOS;
- float2 texture:TEX0;
- };
-
- // moves the coord over and returns the new connector
- v2fConnector main(a2vConnector a2v){
- v2fConnector v2f;
- v2f.coord = a2v.coord;
- v2f.texture = a2v.texcoord;
- return v2f;
- }