From c8be4b36c1fc34c6975a594e020d4ff404057adb Mon Sep 17 00:00:00 2001 From: yvain Date: Thu, 15 Aug 2024 19:03:27 +0200 Subject: [PATCH] fix shadowmap spot atlases. --- Sources/iron/object/MeshObject.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/iron/object/MeshObject.hx b/Sources/iron/object/MeshObject.hx index d8729d29..80c78fc0 100644 --- a/Sources/iron/object/MeshObject.hx +++ b/Sources/iron/object/MeshObject.hx @@ -162,7 +162,7 @@ class MeshObject extends Object { var isShadow = context == "shadowmap"; if (!visible && !isShadow) return setCulled(isShadow, true); - //if (!visibleShadow && isShadow) return setCulled(isShadow, true); + if (!visibleShadow && isShadow) return setCulled(isShadow, true); if (skip_context == context) return setCulled(isShadow, true); if (force_context != null && force_context != context) return setCulled(isShadow, true);