commit | ab1c98ac183d07e2ac0e38c5a2a6ec607f14aeb0 | [log] [tgz] |
---|---|---|
author | Anuj Verma <anujv@posteo.net> | Thu Jan 27 15:23:47 2022 +0530 |
committer | Anuj Verma <anujv@posteo.net> | Thu Jan 27 18:01:08 2022 +0530 |
tree | 39abc3f9060ffdf9678ca155ffde8a2a59169555 | |
parent | 3d77756e73c61ab37eb020a32730cda8efab79ff [diff] |
Fix sdf computation while `USE_SQUARED_DISTANCES`. Function `map_fixed_to_sdf` expects spread to be absolute and not squared. * src/sdf/ftbsdf.c (finalize_sdf): Pass absolute spread while `map_fixed_to_sdf`. * src/sdf/ftsdf.c (sdf_generate_bounding_box): Ditto.