Skip to content

Commit

Permalink
Merge pull request #905 from 3DStreet/new-glb-layer-shadow
Browse files Browse the repository at this point in the history
newly placed glb should cast shadow
  • Loading branch information
kfarr authored Oct 29, 2024
2 parents 2443c4f + bc693af commit 636ea52
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 636ea52

Please sign in to comment.