From a5169c9bd8473c6d8bab9932995e7d7486ee49af Mon Sep 17 00:00:00 2001 From: gchoqueux Date: Thu, 6 Dec 2018 18:51:48 +0100 Subject: [PATCH] fix(debug): disable fog with camera debug rendering --- utils/debug/Debug.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/debug/Debug.js b/utils/debug/Debug.js index ba9a135a74..e7f2ac84da 100644 --- a/utils/debug/Debug.js +++ b/utils/debug/Debug.js @@ -140,8 +140,8 @@ function Debug(view, datDebugTool, chartDivContainer) { displayedTilesObb.add(displayedTilesObbHelper); function updateFogDistance(obj) { - if (obj.setFog && fogDistance) { - obj.setFog(fogDistance); + if (obj.material && fogDistance) { + obj.material.fogDistance = fogDistance; } }