X-Git-Url: http://git.euphorik.ch/?p=GPU.git;a=blobdiff_plain;f=WCudaMSE%2FStudent_Cuda_Image%2Fsrc%2Fcpp%2Fcore%2F00_Rippling_warmup%2F03_math%2FRippling0Math.h;h=ca71c75975e2fd73baef59b65b6ea24950c49c7a;hp=3879d1dff86a03594f88d6620e674257ea99dc91;hb=3e601cb6c0cc2c5b3a9b30ebf3ad1102e53c0e0b;hpb=b1138708dfa104f784170fcf2d50989156e5c5d0 diff --git a/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/03_math/Rippling0Math.h b/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/03_math/Rippling0Math.h index 3879d1d..ca71c75 100755 --- a/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/03_math/Rippling0Math.h +++ b/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/03_math/Rippling0Math.h @@ -41,7 +41,7 @@ class Rippling0Math void color(int i, int j, float t, uchar4* ptrColor) { const double dxy10 = dxy(j, i) / 10.0; - const double grayLevelFloat = 128.0 + 127.0 * cos(dxy10 - 100.0 * t / 7.0) / (dxy10 + 1); + const double grayLevelFloat = 128.0 + 127.0 * cos(dxy10 - t / 7.0) / (dxy10 + 1); const uchar grayLevel = (uchar)(long(grayLevelFloat) % 256); ptrColor->x = grayLevel;