exercise position invarient vertex program
authorKeith Whitwell <keith@tungstengraphics.com>
Wed, 21 Jun 2006 14:03:39 +0000 (14:03 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Wed, 21 Jun 2006 14:03:39 +0000 (14:03 +0000)
progs/tests/arbvptorus.c

index c1e2d0b..9d19ef9 100644 (file)
@@ -115,13 +115,8 @@ static void Init( void )
     */
    static const char prog[] = 
       "!!ARBvp1.0\n"
+      "OPTION ARB_position_invariant ;"
       "TEMP R0, R1; \n"
-      "#Simple transform and diffuse lighting\n"
-      "# object x MVP -> clip\n"
-      "DP4   result.position.x, state.matrix.mvp.row[0], vertex.position ;\n"
-      "DP4   result.position.y, state.matrix.mvp.row[1], vertex.position ;\n"
-      "DP4   result.position.z, state.matrix.mvp.row[2], vertex.position ;\n"
-      "DP4   result.position.w, state.matrix.mvp.row[3], vertex.position ;\n"
 
       "# normal x MV-1T -> lighting normal\n"          
       "DP3   R1.x, state.matrix.modelview.invtrans.row[0], vertex.normal ;\n"