mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-18 22:24:55 -04:00
--Bug fixes
-Fix some potential OpenCL compilation bugs on circlecrop, circlecrop2, oscilloscope2, Truchet_hex_crop. -Prevent the minus key from changing the current xform when being pressed in a textbox. --Code changes -Cleanup some casting in depth_blur, depth_blur2.
This commit is contained in:
@ -5026,7 +5026,7 @@ public:
|
||||
<< "\t\treal_t t;\n"
|
||||
<< "\t\treal_t pt = " << perturbation << " * sin(" << tpf2 << " * vIn.y);\n"
|
||||
<< "\n"
|
||||
<< "\t\tif (!" << damping << ")\n"
|
||||
<< "\t\tif (" << damping << " == 0)\n"
|
||||
<< "\t\t t = fma(" << amplitude << ", cos(fma(" << tpf << ", vIn.x, pt)), " << separation << ");\n"
|
||||
<< "\t\telse\n"
|
||||
<< "\t\t t = fma(" << amplitude << ", exp(-fabs(vIn.x) * " << damping << ") * cos(fma(" << tpf << ", vIn.x, pt)), " << separation << ");\n"
|
||||
|
Reference in New Issue
Block a user