From bc693aff5cad265cdeb855f27a91fcbf4b221d0e Mon Sep 17 00:00:00 2001 From: Kieran Farr Date: Mon, 28 Oct 2024 23:11:14 -0700 Subject: [PATCH] newly placed glb should cast shadow --- .../components/AddLayerPanel/createLayerFunctions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/editor/components/components/AddLayerPanel/createLayerFunctions.js b/src/editor/components/components/AddLayerPanel/createLayerFunctions.js index f9d58b0a..8f0653ee 100644 --- a/src/editor/components/components/AddLayerPanel/createLayerFunctions.js +++ b/src/editor/components/components/AddLayerPanel/createLayerFunctions.js @@ -168,7 +168,8 @@ export function createCustomModel(position) { components: { position: position ?? '0 0 0', 'gltf-model': `url(${modelUrl})`, - 'data-layer-name': 'glTF Model • My Custom Object' + 'data-layer-name': 'glTF Model • My Custom Object', + shadow: 'receive: true; cast: true;' } }; AFRAME.INSPECTOR.execute('entitycreate', definition);