diff --git a/examples/test/laser-controls/index.html b/examples/test/laser-controls/index.html index a873c54d521..cbfe7b6d13e 100644 --- a/examples/test/laser-controls/index.html +++ b/examples/test/laser-controls/index.html @@ -34,6 +34,18 @@ } } }); + + AFRAME.registerComponent('shadow-if-mobile', { + init: function () { + if (!this.el.sceneEl.isMobile) { + this.el.setAttribute('light', { + castShadow: true, + shadowMapWidth: 2048, + shadowMapHeight: 1024 + }); + } + } + }); @@ -48,7 +60,7 @@ - +