|
@@ -19,6 +19,20 @@ export default class BreathPoint {
|
|
this._scene = scene;
|
|
this._scene = scene;
|
|
this._skinInfo = skinInfo;
|
|
this._skinInfo = skinInfo;
|
|
this._isInScene = !0;
|
|
this._isInScene = !0;
|
|
|
|
+
|
|
|
|
+ if(location.href.indexOf("debug") > -1) {
|
|
|
|
+ var light = new BABYLON.HemisphericLight("light1", new BABYLON.Vector3(0, 1, 0), scene);
|
|
|
|
+ light.intensity = 0.7;
|
|
|
|
+ var ground = BABYLON.MeshBuilder.CreatePlane("ground1", {width: 0.4, height: 0.2, subdivisions: 25}, this._scene);
|
|
|
|
+ ground.position = xStaticMesh.mesh.position
|
|
|
|
+ ground.rotation = new BABYLON.Vector3(Math.PI / 2, 0, 0)
|
|
|
|
+ var materialGround = new BABYLON.StandardMaterial("Mat", this._scene);
|
|
|
|
+ ground.material = materialGround;
|
|
|
|
+ var textureGround = new BABYLON.DynamicTexture("dynamic texture", {width:350, height:300}, this._scene);
|
|
|
|
+ textureGround.drawText(id, 0, 200, "bold 200px monospace", "red", "white", true, true);
|
|
|
|
+ materialGround.diffuseTexture = textureGround;
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
get isInScene() {
|
|
get isInScene() {
|
|
return this._isInScene
|
|
return this._isInScene
|