Raanan Weber 7d7506145b adding readme.md files to the package json hace 8 años
..
babylon.cellMaterial.d.ts deefbcdbae Fixed serialization issue when dealing with complex hiearchies hace 8 años
babylon.cellMaterial.js 4e265b4e26 nightly hace 8 años
babylon.cellMaterial.min.js 613af5b1b9 Fix playground bug when dist=true hace 8 años
babylon.customMaterial.d.ts 4e265b4e26 nightly hace 8 años
babylon.customMaterial.js 4e265b4e26 nightly hace 8 años
babylon.customMaterial.min.js 613af5b1b9 Fix playground bug when dist=true hace 8 años
babylon.fireMaterial.d.ts deefbcdbae Fixed serialization issue when dealing with complex hiearchies hace 8 años
babylon.fireMaterial.js 44788457a4 Nightly hace 8 años
babylon.fireMaterial.min.js 613af5b1b9 Fix playground bug when dist=true hace 8 años
babylon.furMaterial.d.ts deefbcdbae Fixed serialization issue when dealing with complex hiearchies hace 8 años
babylon.furMaterial.js 4e265b4e26 nightly hace 8 años
babylon.furMaterial.min.js 613af5b1b9 Fix playground bug when dist=true hace 8 años
babylon.gradientMaterial.d.ts deefbcdbae Fixed serialization issue when dealing with complex hiearchies hace 8 años
babylon.gradientMaterial.js 4e265b4e26 nightly hace 8 años
babylon.gradientMaterial.min.js 613af5b1b9 Fix playground bug when dist=true hace 8 años
babylon.gridMaterial.d.ts deefbcdbae Fixed serialization issue when dealing with complex hiearchies hace 8 años
babylon.gridMaterial.js 44788457a4 Nightly hace 8 años
babylon.gridMaterial.min.js 613af5b1b9 Fix playground bug when dist=true hace 8 años
babylon.lavaMaterial.d.ts deefbcdbae Fixed serialization issue when dealing with complex hiearchies hace 8 años
babylon.lavaMaterial.js 4e265b4e26 nightly hace 8 años
babylon.lavaMaterial.min.js 613af5b1b9 Fix playground bug when dist=true hace 8 años
babylon.legacyPbrMaterial.d.ts e8ca73d095 Nightly hace 8 años
babylon.legacyPbrMaterial.js 4e265b4e26 nightly hace 8 años
babylon.legacyPbrMaterial.min.js 613af5b1b9 Fix playground bug when dist=true hace 8 años
babylon.normalMaterial.d.ts deefbcdbae Fixed serialization issue when dealing with complex hiearchies hace 8 años
babylon.normalMaterial.js 4e265b4e26 nightly hace 8 años
babylon.normalMaterial.min.js 613af5b1b9 Fix playground bug when dist=true hace 8 años
babylon.shadowOnlyMaterial.d.ts 9b5e508976 Added a new activeLight property to ShadowOnly material hace 8 años
babylon.shadowOnlyMaterial.js 4e265b4e26 nightly hace 8 años
babylon.shadowOnlyMaterial.min.js 613af5b1b9 Fix playground bug when dist=true hace 8 años
babylon.simpleMaterial.d.ts deefbcdbae Fixed serialization issue when dealing with complex hiearchies hace 8 años
babylon.simpleMaterial.js 4e265b4e26 nightly hace 8 años
babylon.simpleMaterial.min.js 613af5b1b9 Fix playground bug when dist=true hace 8 años
babylon.skyMaterial.d.ts deefbcdbae Fixed serialization issue when dealing with complex hiearchies hace 8 años
babylon.skyMaterial.js 4e265b4e26 nightly hace 8 años
babylon.skyMaterial.min.js 613af5b1b9 Fix playground bug when dist=true hace 8 años
babylon.terrainMaterial.d.ts deefbcdbae Fixed serialization issue when dealing with complex hiearchies hace 8 años
babylon.terrainMaterial.js 4e265b4e26 nightly hace 8 años
babylon.terrainMaterial.min.js 613af5b1b9 Fix playground bug when dist=true hace 8 años
babylon.triPlanarMaterial.d.ts deefbcdbae Fixed serialization issue when dealing with complex hiearchies hace 8 años
babylon.triPlanarMaterial.js 4e265b4e26 nightly hace 8 años
babylon.triPlanarMaterial.min.js 613af5b1b9 Fix playground bug when dist=true hace 8 años
babylon.waterMaterial.d.ts ed703aba9d Fixes #2662 hace 8 años
babylon.waterMaterial.js 4e265b4e26 nightly hace 8 años
babylon.waterMaterial.min.js 613af5b1b9 Fix playground bug when dist=true hace 8 años
babylonjs.materials.js 613af5b1b9 Fix playground bug when dist=true hace 8 años
babylonjs.materials.min.js 613af5b1b9 Fix playground bug when dist=true hace 8 años
babylonjs.materials.module.d.ts 386be42463 Missing files for npm packages (generated) hace 8 años
package.json 7d7506145b adding readme.md files to the package json hace 8 años
readme.md 241153b81f Readme files for all modules hace 8 años

readme.md

Babylon.js Materials Library

For usage documentation please visit http://doc.babylonjs.com/extensions and choose "materials library".

Installation instructions

CDN

Compiled js files (minified and source) are offered on our public CDN here:

NPM

To install using npm :

npm install --save babylonjs babylonjs-materials

If using TypeScript, the typing needs to be added to tsconfig.json:

    ....
    "types": [
        "babylonjs",
        "babylonjs-materials",
        "oneMoreDependencyThatIReallyNeed"
    ],
    ....

Afterwards it can be imported to the project using:

import * as BABYLON from 'babylonjs';
import from 'babylonjs-materials';

This will extend Babylon's namespace with the materials available:

// Some awesome code
let skyMaterial = new BABYLON.SkyMaterial("skyMaterial", scene);
skyMaterial.backFaceCulling = false;
// Some more awesome code

Using webpack to package your project will use the minified js file.