File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -163,14 +163,14 @@ AFRAME.registerComponent('environment', {
163
163
// create ground
164
164
this . groundMaterial = null ;
165
165
this . ground = document . createElement ( 'a-entity' ) ;
166
+ this . ground . setAttribute ( 'rotation' , '-90 0 0' ) ;
166
167
this . ground . classList . add ( 'environmentGround' ) ;
167
168
this . groundCanvas = null ;
168
169
this . groundTexture = null ;
169
170
this . groundMaterial = null ;
170
171
this . groundGeometry = null ;
171
172
172
173
this . dressing = document . createElement ( 'a-entity' ) ;
173
- this . dressing . classList . add ( 'environmentDressing' )
174
174
175
175
this . gridCanvas = null ;
176
176
this . gridTexture = null ;
@@ -529,11 +529,10 @@ AFRAME.registerComponent('environment', {
529
529
530
530
this . groundGeometry . verticesNeedUpdate = true ;
531
531
this . groundGeometry . normalsNeedUpdate = true ;
532
- this . groundGeometry . rotateX ( - Math . PI / 2 )
533
532
}
534
533
535
534
// apply Y scale. There's no need to recalculate the geometry for this. Just change scale
536
- this . ground . setAttribute ( 'scale' , { y : this . data . groundYScale } ) ;
535
+ this . ground . setAttribute ( 'scale' , { z : this . data . groundYScale } ) ;
537
536
538
537
// update ground, playarea and grid textures.
539
538
var groundResolution = 2048 ;
You can’t perform that action at this time.
0 commit comments