Blender Git Commit Log

Git Commits -> Revision c6f8ea7

Revision c6f8ea7 by Omar Emara (master)
August 22, 2019, 11:51 (GMT)
Fix T69044: OpenCL fail due to bad fract function.

The fract function in OpenCL does more than just return the fraction.
It also writes the floor to the second argument. Which wasn't put
in consideration.

Instead, we use a simple `a - floor(a)` like the Math node.

Reviewers: brecht

Differential Revision: https://developer.blender.org/D5553

Commit Details:

Full Hash: c6f8ea7b45af72fa7f7d1a47140fd946c1db3d5e
Parent Commit: b208096
Lines Changed: +1, -7

2 Modified Paths:

/intern/cycles/kernel/svm/svm_math_util.h (+1, -1) (Diff)
/intern/cycles/util/util_math_float3.h (+0, -6) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021