X-Git-Url: http://git.euphorik.ch/?p=GPU.git;a=blobdiff_plain;f=WCudaMSE%2FStudent_Cuda_Image%2Fsrc%2Fcpp%2Fcore%2F01_Rippling%2Fmoo%2Fdevice%2Fmath%2FRipplingMath.h;h=e90a060c517a45009bd53a60d76030955b372257;hp=655fa094a90f8d3635180d9028379703f45e9d07;hb=3e601cb6c0cc2c5b3a9b30ebf3ad1102e53c0e0b;hpb=b1138708dfa104f784170fcf2d50989156e5c5d0 diff --git a/WCudaMSE/Student_Cuda_Image/src/cpp/core/01_Rippling/moo/device/math/RipplingMath.h b/WCudaMSE/Student_Cuda_Image/src/cpp/core/01_Rippling/moo/device/math/RipplingMath.h index 655fa09..e90a060 100755 --- a/WCudaMSE/Student_Cuda_Image/src/cpp/core/01_Rippling/moo/device/math/RipplingMath.h +++ b/WCudaMSE/Student_Cuda_Image/src/cpp/core/01_Rippling/moo/device/math/RipplingMath.h @@ -40,7 +40,7 @@ class RipplingMath void color(int i, int j, float t, uchar4& color) { const double dxy10 = dxy(j, i) / 10.0; - const double grayLevelFloat = 128.0 + 127.0 * cos(dxy10 - t / 7.0 / 10.0) / (dxy10 + 1); + const double grayLevelFloat = 128.0 + 127.0 * cos(dxy10 - t / 7.0) / (dxy10 + 1); const uchar grayLevel = (uchar)(long(grayLevelFloat) % 256); color.x = grayLevel;