Browse Source

don't render walls

previous commit makes real walls
master
Stephen McQuay 3 years ago
parent
commit
76ee015c0b
No known key found for this signature in database
1 changed files with 0 additions and 18 deletions
  1. +0
    -18
      ui/js/gorobots_render_webgl.js

+ 0
- 18
ui/js/gorobots_render_webgl.js View File

@@ -202,24 +202,6 @@ var gorobots_render_webgl = function(){
my.wallobjy = new THREE.CubeGeometry(3, my.height, 3);
var material = new THREE.MeshLambertMaterial( { color: "#cccccc" } );

my.wall = new THREE.Mesh(my.wallobjx, material);
my.wall.position.x = my.width / 2;
my.scene.add(my.wall);

my.wall2 = new THREE.Mesh(my.wallobjx, material);
my.wall2.position.x = my.width / 2;
my.wall2.position.y = my.height ;
my.scene.add(my.wall2);

my.wall3 = new THREE.Mesh(my.wallobjy, material);
my.wall3.position.y = my.height / 2;
my.scene.add(my.wall3);

my.wall4 = new THREE.Mesh(my.wallobjy, material);
my.wall4.position.y = my.height / 2;
my.wall4.position.x = my.width ;
my.scene.add(my.wall4);

my.scene.add(my.camera);
var directionalLight = new THREE.DirectionalLight( 0xffffff, 0.9 );
directionalLight.position.set( 0, 0, -1 );

Loading…
Cancel
Save