New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

babylonjs

Package Overview
Dependencies
Maintainers
1
Versions
689
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babylonjs - npm Package Compare versions

Comparing version 3.2.0-alpha0 to 3.2.0-alpha10

babylon.d.ts

47

package.json

@@ -12,3 +12,3 @@ {

"description": "Babylon.js is a JavaScript 3D engine based on webgl.",
"version": "3.2.0-alpha0",
"version": "3.2.0-alpha10",
"repository": {

@@ -18,39 +18,14 @@ "type": "git",

},
"main": "dist/preview release/babylon.max.js",
"main": "babylon.js",
"files": [
"dist/preview release/babylon.d.ts",
"dist/preview release/babylon.js",
"dist/preview release/babylon.max.js",
"dist/preview release/babylon.worker.js",
"dist/preview release/loaders/babylon.glTFFileLoader.min.js",
"dist/preview release/loaders/babylon.objFileLoader.min.js",
"dist/preview release/loaders/babylon.stlFileLoader.min.js",
"dist/preview release/inspector/babylon.inspector.bundle.js",
"dist/preview release/materialsLibrary/babylon.fireMaterial.min.js",
"dist/preview release/materialsLibrary/babylon.waterMaterial.min.js",
"dist/preview release/materialsLibrary/babylon.lavaMaterial.min.js",
"dist/preview release/materialsLibrary/babylon.normalMaterial.min.js",
"dist/preview release/materialsLibrary/babylon.skyMaterial.min.js",
"dist/preview release/materialsLibrary/babylon.triPlanarMaterial.min.js",
"dist/preview release/materialsLibrary/babylon.terrainMaterial.min.js",
"dist/preview release/materialsLibrary/babylon.gradientMaterial.min.js",
"dist/preview release/materialsLibrary/babylon.furMaterial.min.js",
"dist/preview release/materialsLibrary/babylon.gridMaterial.min.js",
"dist/preview release/materialsLibrary/babylon.shadowOnlyMaterial.min.js",
"dist/preview release/materialsLibrary/babylon.customMaterial.min.js",
"dist/preview release/materialsLibrary/babylon.cellMaterial.min.js",
"dist/preview release/proceduralTexturesLibrary/babylon.brickProceduralTexture.min.js",
"dist/preview release/proceduralTexturesLibrary/babylon.cloudProceduralTexture.min.js",
"dist/preview release/proceduralTexturesLibrary/babylon.fireProceduralTexture.min.js",
"dist/preview release/proceduralTexturesLibrary/babylon.grassProceduralTexture.min.js",
"dist/preview release/proceduralTexturesLibrary/babylon.marbleProceduralTexture.min.js",
"dist/preview release/proceduralTexturesLibrary/babylon.roadProceduralTexture.min.js",
"dist/preview release/proceduralTexturesLibrary/babylon.starfieldProceduralTexture.min.js",
"dist/preview release/proceduralTexturesLibrary/babylon.woodProceduralTexture.min.js",
"dist/preview release/postProcessesLibrary/babylon.asciiArtPostProcess.min.js",
"dist/preview release/postProcessesLibrary/babylon.digitalRainPostProcess.min.js",
"dist/preview release/Oimo.js",
"package.json"
"package.json",
"babylon.d.ts",
"es6.js",
"babylon.js",
"babylon.max.js",
"babylon.worker.js",
"Oimo.js",
"readme.md"
],
"typings": "dist/preview release/babylon.d.ts",
"typings": "babylon.d.ts",
"keywords": [

@@ -57,0 +32,0 @@ "3D",

@@ -6,3 +6,3 @@ Babylon.js

[![Build Status](https://travis-ci.org/BabylonJS/Babylon.js.svg)](https://travis-ci.org/BabylonJS/Babylon.js)
[![Build Status](https://travis-ci.org/BabylonJS/Babylon.js.svg)](https://travis-ci.org/BabylonJS/Babylon.js)

@@ -59,2 +59,41 @@ **Any questions?** Here is our official [forum](http://www.html5gamedevs.com/forum/16-babylonjs/) on www.html5gamedevs.com.

## Usage
See [Getting Started](http://doc.babylonjs.com/#getting-started)
```javascript
// Get the canvas DOM element
var canvas = document.getElementById('renderCanvas');
// Load the 3D engine
var engine = new BABYLON.Engine(canvas, true, {preserveDrawingBuffer: true, stencil: true});
// CreateScene function that creates and return the scene
var createScene = function(){
// Create a basic BJS Scene object
var scene = new BABYLON.Scene(engine);
// Create a FreeCamera, and set its position to {x: 0, y: 5, z: -10}
var camera = new BABYLON.FreeCamera('camera1', new BABYLON.Vector3(0, 5, -10), scene);
// Target the camera to scene origin
camera.setTarget(BABYLON.Vector3.Zero());
// Attach the camera to the canvas
camera.attachControl(canvas, false);
// Create a basic light, aiming 0, 1, 0 - meaning, to the sky
var light = new BABYLON.HemisphericLight('light1', new BABYLON.Vector3(0, 1, 0), scene);
// Create a built-in "sphere" shape; its constructor takes 6 params: name, segment, diameter, scene, updatable, sideOrientation
var sphere = BABYLON.Mesh.CreateSphere('sphere1', 16, 2, scene, false, BABYLON.Mesh.FRONTSIDE);
// Move the sphere upward 1/2 of its height
sphere.position.y = 1;
// Create a built-in "ground" shape; its constructor takes 6 params : name, width, height, subdivision, scene, updatable
var ground = BABYLON.Mesh.CreateGround('ground1', 6, 6, 2, scene, false);
// Return the created scene
return scene;
}
// call the createScene function
var scene = createScene();
// run the render loop
engine.runRenderLoop(function(){
scene.render();
});
// the canvas/window resize event handler
window.addEventListener('resize', function(){
engine.resize();
});
```
## Preview release

@@ -61,0 +100,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc