From b2ac2d95146f47d8b223ed67a5a903dd4dee3a8f Mon Sep 17 00:00:00 2001 From: ThomasGorisse Date: Tue, 15 Feb 2022 23:58:18 +0100 Subject: [PATCH] Fix wrong setShadowReceiver --- .../com/google/ar/sceneform/rendering/RenderableInstance.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/google/ar/sceneform/rendering/RenderableInstance.java b/core/src/main/java/com/google/ar/sceneform/rendering/RenderableInstance.java index 80363812..4be0ff16 100644 --- a/core/src/main/java/com/google/ar/sceneform/rendering/RenderableInstance.java +++ b/core/src/main/java/com/google/ar/sceneform/rendering/RenderableInstance.java @@ -335,7 +335,7 @@ public void setShadowReceiver(boolean isShadowReceiver) { RenderableManager renderableManager = EngineInstance.getEngine().getRenderableManager(); @EntityInstance int renderableInstance = renderableManager.getInstance(getEntity()); if (renderableInstance != 0) { - renderableManager.setCastShadows(renderableInstance, isShadowCaster); + renderableManager.setReceiveShadows(renderableInstance, isShadowReceiver); } //TODO : Verify if we don't need to apply the parameter to child entities // for (int i = 0; i < entities.length; i++) {