/*
==========================================================================================
 Cg Acceleration Research

 Edgar Velázquez Armendáriz - edgar [at] graphics [dot] cornell [dot] edu
------------------------------------------------------------------------------------------
 predictedProjection.cg

 Point cloud predicted projection shaders.
==========================================================================================
*/

/**
 * Vertex program to just transfor a vertex. This shader is meant
 * to work on an environment where depth test is disabled
 *
 * vp40: # 5 instructions, 1 R-regs
 */
void vertSimple(    uniform float4x4 ModelViewProj  : state.matrix.mvp,
                    in  float4 IN                   : POSITION,
                    out float4 OUT                  : POSITION ) 
{
                    
    // Transformed position of the vertex into clip coordinates, after transforming!
    OUT = mul(ModelViewProj, IN);
    OUT.y *= -1.0;  // Flips the image on y
    OUT.z = 0;      // Avoid one DP4 instruction, because I just do not care about Z!
}


/**
 * Just draw white pixels!
 *
 * fp40: # 1 instructions, 0 R-regs, 0 H-regs
 */
half3 fragSimple() : COLOR {

    return half3(1,1,1);
}