1
0
Fork 0
This commit is contained in:
Thebarda 2016-12-02 05:19:13 +02:00
parent 43f5440306
commit fb29b6345e
2 changed files with 5 additions and 1 deletions

BIN
images/text.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

View file

@ -360,12 +360,16 @@ function createDemoScene(scene) {
ground.material = groundMaterial1;
ground.checkCollisions = true;
var textSalle1 = new BABYLON.StandardMaterial("texture4", scene);
textSalle1.diffuseTexture = new BABYLON.Texture("images/text.png", scene);
textSalle1.specularColor = new BABYLON.Color3(0, 0, 0);
var mur1 = BABYLON.Mesh.CreatePlane("mur1", 50, scene);
mur1.rotation.y = Math.PI / 2;
mur1.position.y = -15;
mur1.position.x = 25;
mur1.visibility = 1;
mur1.material = wall;
mur1.material = textSalle1;
mur1.checkCollisions = true;
var mur2 = BABYLON.Mesh.CreatePlane("mur2", 50, scene);