fix(ios): use decal shadows on Metal
Adrian Castro · 2026-08-01 ·
parent 1a69489305
fix(ios): use decal shadows on Metal
Changed files
lib/ShadowMap.lua | 3 +++
1 file changed, 3 insertions(+)
Diff
diff --git a/lib/ShadowMap.lua b/lib/ShadowMap.lua
index d5afc76..8997a49 100644
--- a/lib/ShadowMap.lua
+++ b/lib/ShadowMap.lua
@@ -221,6 +221,9 @@ end
-- where the canvas cannot be made -- VoxelScene then keeps the flat decal
-- shadows, which need nothing but a quad.
function ShadowMap.available()
+ if love.system and love.system.getOS and love.system.getOS() == "iOS" then
+ return false
+ end
if not (love.graphics and love.graphics.newCanvas
and love.graphics.setDepthMode) then
return false