fin
This commit is contained in:
parent
43f5440306
commit
fb29b6345e
2 changed files with 5 additions and 1 deletions
BIN
images/text.png
Normal file
BIN
images/text.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
|
@ -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);
|
||||
|
|
Reference in a new issue