Skip to content

Commit

Permalink
updated dist
Browse files Browse the repository at this point in the history
  • Loading branch information
feiss committed Oct 4, 2017
1 parent 6bf8794 commit ec4a933
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions dist/aframe-environment-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,14 +209,14 @@
// create ground
this.groundMaterial = null;
this.ground = document.createElement('a-entity');
this.ground.setAttribute('rotation', '-90 0 0');
this.ground.classList.add('environmentGround');
this.groundCanvas = null;
this.groundTexture = null;
this.groundMaterial = null;
this.groundGeometry = null;

this.dressing = document.createElement('a-entity');
this.dressing.classList.add('environmentDressing')

this.gridCanvas = null;
this.gridTexture = null;
Expand Down Expand Up @@ -575,10 +575,11 @@

this.groundGeometry.verticesNeedUpdate = true;
this.groundGeometry.normalsNeedUpdate = true;
this.groundGeometry.rotateX(- Math.PI / 2)
}

// apply Y scale. There's no need to recalculate the geometry for this. Just change scale
this.ground.setAttribute('scale', {z: this.data.groundYScale});
this.ground.setAttribute('scale', {y: this.data.groundYScale});

// update ground, playarea and grid textures.
var groundResolution = 2048;
Expand Down
Loading

0 comments on commit ec4a933

Please sign in to comment.