diff --git a/src/components/structural/View.js b/src/components/structural/View.js index 791c1819..0bb094b2 100644 --- a/src/components/structural/View.js +++ b/src/components/structural/View.js @@ -354,7 +354,7 @@ class View extends Component { if (this.props.sceneConfig.settings.showCoordHelper) { return ( - + diff --git a/src/utils/AFramePhysics.js b/src/utils/AFramePhysics.js index 88ee6c18..82b4d770 100644 --- a/src/utils/AFramePhysics.js +++ b/src/utils/AFramePhysics.js @@ -32,6 +32,24 @@ AFRAME.registerComponent("force-pushable", { /** * @summary This sets the side where the shadow should be cast on entity */ +AFRAME.registerComponent("gridmaterial",{ + schema:{ + default:"" + }, + init: function(){ + const texture = new THREE.TextureLoader().load("/img/grid_alpha_0.png"); + texture.repeat = new THREE.Vector2(75,75); + texture.wrapS = THREE.RepeatWrapping; + texture.wrapT = THREE.RepeatWrapping; + + this.el.getObject3D("mesh").material = new THREE.MeshBasicMaterial({ + map: texture, + transparent: true + }); + } +}); + +//This sets the side where the shadow should be rendered AFRAME.registerComponent("shadowcustomsetting", { schema:{ default:"" @@ -56,7 +74,6 @@ AFRAME.registerComponent("shadowcustomsetting", { }, }); - /** * @summary Calculate and sets the rotation of the entity based on 2 points * This is use for the light indicator that has the property of lighttarget (directional and spot light)