Add transparency wall
This commit is contained in:
parent
ae050cfba9
commit
98d390e1e3
1 changed files with 18 additions and 14 deletions
|
@ -71,22 +71,26 @@ function createDemoScene(scene) {
|
|||
mur1.rotation.y = Math.PI / 2;
|
||||
mur1.position.y = 20;
|
||||
mur1.position.x = 25;
|
||||
mur1.visibility = 0;
|
||||
mur1.checkCollisions = true;
|
||||
|
||||
var mur2 = BABYLON.Mesh.CreatePlane("mur2", 50, scene);
|
||||
mur2.rotation.y = -(Math.PI / 2);
|
||||
mur2.position.y = 20;
|
||||
mur2.position.x = -25;
|
||||
mur2.visibility = 0;
|
||||
mur2.checkCollisions = true;
|
||||
|
||||
var mur3 = BABYLON.Mesh.CreatePlane("mur3", 50, scene);
|
||||
mur3.rotation.z = Math.PI / 2;
|
||||
mur3.position.z = 25;
|
||||
mur3.visibility = 0;
|
||||
mur3.checkCollisions = true;
|
||||
|
||||
var mur4 = BABYLON.Mesh.CreatePlane("mur4", 50, scene);
|
||||
mur4.rotation.x = Math.PI;
|
||||
mur4.position.z = -25;
|
||||
mur4.visibility = 0;
|
||||
mur4.checkCollisions = true;
|
||||
|
||||
// Et quelques cubes...
|
||||
|
|
Reference in a new issue