better looking tests
authorKeith Whitwell <keith@tungstengraphics.com>
Fri, 21 Oct 2005 10:27:37 +0000 (10:27 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Fri, 21 Oct 2005 10:27:37 +0000 (10:27 +0000)
progs/fp/tri-cos.c
progs/fp/tri-sin.c

index ec83804a68f7154809aa219fb49f9278e742cdb9..620db8dfa925d4be0360b88e693ecc18a927e05f 100644 (file)
@@ -42,8 +42,9 @@ static void Init( void )
       "!!ARBfp1.0\n"
       "TEMP R0; \n"
       "MUL R0, fragment.color, {3.14}.x; \n"
-      "SIN result.color.x, R0.x; \n"
+      "COS result.color.x, R0.x; \n"
       "COS result.color.y, R0.y; \n"
+      "COS result.color.z, R0.z; \n"
       "END"
       ;
    GLuint modulateProg;
index d9c5c44c307ed56c8a7a0c21b6f54cf35e75b486..f98bfdd25eb369cad17f7d360d15e2981e438f21 100644 (file)
@@ -40,8 +40,12 @@ static void Init( void )
 {
    static const char *modulate2D =
       "!!ARBfp1.0\n"
+      "TEMP R0; \n"
+      "MUL R0, fragment.color, {3.14}.x; \n"
       "MOV result.color, {0.0}.x; \n"
-      "COS result.color.y, fragment.color.y; \n"
+      "SIN result.color.x, R0.x; \n"
+      "SIN result.color.y, R0.y; \n"
+      "SIN result.color.z, R0.z; \n"
       "END"
       ;
    GLuint modulateProg;