Skip to content

Commit

Permalink
Merge pull request #44 from Myach-FSA/lights
Browse files Browse the repository at this point in the history
lights2 cleanup
  • Loading branch information
niLYu committed Aug 21, 2017
2 parents 1e823a8 + e5c6d7e commit 392fa2e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions app/components/Scene1.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ const createScene1 = (canvas, engine) => {
var light0 = new BABYLON.PointLight("Omni0", new BABYLON.Vector3(0, 10, 0), scene);
var light1 = new BABYLON.PointLight("Omni1", new BABYLON.Vector3(0, -10, 0), scene);
var light2 = new BABYLON.PointLight("Omni2", new BABYLON.Vector3(10, 0, 0), scene);
var light3 = new BABYLON.PointLight("Omni2", new BABYLON.Vector3(0, 15, 0), scene);
var light4 = new BABYLON.PointLight("Omni2", new BABYLON.Vector3(0, -15, 0), scene);
var light5 = new BABYLON.PointLight("Omni2", new BABYLON.Vector3(15, 0, 0), scene);
var light3 = new BABYLON.PointLight("Omni3", new BABYLON.Vector3(0, 15, 0), scene);
var light4 = new BABYLON.PointLight("Omni4", new BABYLON.Vector3(0, -15, 0), scene);
var light5 = new BABYLON.PointLight("Omni5", new BABYLON.Vector3(15, 0, 0), scene);
var lightSphere0 = BABYLON
.Mesh
.CreateSphere("Sphere0", 16, 0.5, scene);
Expand Down Expand Up @@ -98,9 +98,6 @@ const createScene1 = (canvas, engine) => {
background.texture.level = 0;
background.texture.wAng = 0.2;

// var torus = BABYLON.Mesh.CreateTorus('torus', 2, 0.5, 10, scene);
// torus.position.x=winPos.x; torus.position.z=winPos.z; ---- GROUND ----

const ground = BABYLON
.Mesh
.CreateGround('ground1', 50, 50, 2, scene);
Expand Down

0 comments on commit 392fa2e

Please sign in to comment.