don't render walls
previous commit makes real walls
This commit is contained in:
parent
ef33a17b6a
commit
76ee015c0b
@ -202,24 +202,6 @@ var gorobots_render_webgl = function(){
|
|||||||
my.wallobjy = new THREE.CubeGeometry(3, my.height, 3);
|
my.wallobjy = new THREE.CubeGeometry(3, my.height, 3);
|
||||||
var material = new THREE.MeshLambertMaterial( { color: "#cccccc" } );
|
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);
|
my.scene.add(my.camera);
|
||||||
var directionalLight = new THREE.DirectionalLight( 0xffffff, 0.9 );
|
var directionalLight = new THREE.DirectionalLight( 0xffffff, 0.9 );
|
||||||
directionalLight.position.set( 0, 0, -1 );
|
directionalLight.position.set( 0, 0, -1 );
|
||||||
|
Loading…
Reference in New Issue
Block a user