How to increase the range of drawing in Babylon.JS?

Displayed the model in the browser via Babylon.JS but the distance is too small. In the code that displays the model no of the line responsible for this, as in the splint. Maybe somebody knows how to do it?

The code is attached.
if (BABYLON.Engine.the isSupported()) {
 var canvas = document.getElementById("renderCanvas");
 var engine = new BABYLON.Engine(canvas, true);
 var createScene = function () {
 var camera = new BABYLON.FreeCamera("camera1",new Babylon.Vector3(0,5,-10),Scene);

 var scene = new BABYLON.Scene(engine);

 var box = BABYLON.Mesh.CreateBox("box", 6.0, Scene);
}

 /*box.position = new BABYLON.Vector3(-10, 0, 0);*/

 BABYLON.SceneLoader.Load("", "untitled.babylon", engine, function (Scene) {
 Scene.executeWhenReady(function () {
 new BABYLON.HemisphericLight("Hemi0", new BABYLON.Vector3(0, 1, 0), Scene);
 Scene.clearColor = new BABYLON.Color3(0,191,255);
Scene.activeCamera.attachControl(canvas);

 engine.runRenderLoop(function() {
Scene.render();
});
});
 },function (progress) {
});
 }
September 19th 19 at 12:25
0 answer

Find more questions by tags JavaScript