summaryrefslogtreecommitdiff
path: root/modules/gltf
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2021-06-20 03:03:06 -0400
committerAaron Franke <arnfranke@yahoo.com>2021-06-20 03:03:06 -0400
commit45c24fd039f237fa9eed03d06ccf8b3738b223e3 (patch)
treec9d0257e4991b7620baab3fd35525d7ec66eec2c /modules/gltf
parent60dcc4f39c0e6289dba691225c002cd6e77be6ba (diff)
Fix sub-optimal uses of is_equal_approx
Diffstat (limited to 'modules/gltf')
-rw-r--r--modules/gltf/gltf_document.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gltf/gltf_document.cpp b/modules/gltf/gltf_document.cpp
index 40f2116676..61e0f73d46 100644
--- a/modules/gltf/gltf_document.cpp
+++ b/modules/gltf/gltf_document.cpp
@@ -3596,7 +3596,7 @@ void GLTFDocument::spec_gloss_to_rough_metal(Ref<GLTFSpecGloss> r_spec_gloss, Re
if (!Math::is_equal_approx(mr.g, 1.0f)) {
has_roughness = true;
}
- if (!Math::is_equal_approx(mr.b, 0.0f)) {
+ if (!Math::is_zero_approx(mr.b)) {
has_metal = true;
}
mr.g *= r_spec_gloss->gloss_factor;