diff options
author | OmarSquircleArt <omar.squircleart@gmail.com> | 2019-08-08 15:33:35 +0300 |
---|---|---|
committer | OmarSquircleArt <omar.squircleart@gmail.com> | 2019-08-08 15:33:35 +0300 |
commit | 6c87aa858bf0f756560949b25c1afc9c6a887996 (patch) | |
tree | 4147365d7d5317eaa7fc83265b1c5a1fe206e8a2 /source/blender/compositor/operations/COM_CurveBaseOperation.cpp | |
parent | 1e3effc18501e8fb9a02f12456c07a492c08d57c (diff) |
Remove magic numbers and swizzling from Noise code.
Previously, we used a random swizzling pattern as a sort of seed for noise, this proved bad in a lot of cases, including the cases where some of the components are constants. Additionally, we also added some offsets from a set of "magic numbers" as a form of seed. Those magic numbers are bad practice, so we introduced some new functions to generate random offsets based on the hash functions we already have, this happens at compile time, so this has no effect on performance.
Diffstat (limited to 'source/blender/compositor/operations/COM_CurveBaseOperation.cpp')
0 files changed, 0 insertions, 0 deletions