summaryrefslogtreecommitdiff
path: root/thirdparty/harfbuzz/src/hb-ft.cc
diff options
context:
space:
mode:
authorsnowapril <sinjihng@gmail.com>2022-03-14 09:32:06 +0900
committersnowapril <sinjihng@gmail.com>2022-03-14 13:25:05 +0900
commitb6f72f2b4adbd1c98925656d0bcd8f97629cceac (patch)
tree64eee1b9e81de5a4e9fda4cf40e5732489b1872f /thirdparty/harfbuzz/src/hb-ft.cc
parent7a454842d4bb2c5f96a986df21a97888e1649887 (diff)
Fix D_GGX code which can cause divide-by-zero val
When given roughness is lower than 0.01, d value in original code will be zero. This can make last return value as NAN because of divide-by-zero. This is well addressed in issue #56373. Modified code is referenced on D_GGX function of google/filament (https://github.com/google/filament/blob/main/shaders/src/brdf.fs#L54-L79) Signed-off-by: snowapril <sinjihng@gmail.com>
Diffstat (limited to 'thirdparty/harfbuzz/src/hb-ft.cc')
0 files changed, 0 insertions, 0 deletions