Skip to content
Branch: master
Find file History
Latest commit 9deb1df May 2, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
babylon.backgroundMaterial.d.ts
babylon.backgroundMaterial.js
babylon.backgroundMaterial.min.js First mega merge Dec 12, 2017
babylon.cellMaterial.d.ts First mega merge Dec 12, 2017
babylon.cellMaterial.js 4.0.2 Apr 30, 2019
babylon.cellMaterial.js.map 4.0.2 Apr 30, 2019
babylon.cellMaterial.min.js v4.0.0 Apr 30, 2019
babylon.customMaterial.d.ts 3.2 Apr 30, 2018
babylon.customMaterial.js 4.0.2 Apr 30, 2019
babylon.customMaterial.js.map 4.0.2 Apr 30, 2019
babylon.customMaterial.min.js v4.0.0 Apr 30, 2019
babylon.fireMaterial.d.ts First mega merge Dec 12, 2017
babylon.fireMaterial.js 4.0.2 Apr 30, 2019
babylon.fireMaterial.js.map
babylon.fireMaterial.min.js v4.0.0 Apr 30, 2019
babylon.furMaterial.d.ts 3.2 Apr 30, 2018
babylon.furMaterial.js 4.0.2 Apr 30, 2019
babylon.furMaterial.js.map 4.0.2 Apr 30, 2019
babylon.furMaterial.min.js v4.0.0 Apr 30, 2019
babylon.gradientMaterial.d.ts 3.3.0 Oct 1, 2018
babylon.gradientMaterial.js 4.0.2 Apr 30, 2019
babylon.gradientMaterial.js.map 4.0.2 Apr 30, 2019
babylon.gradientMaterial.min.js v4.0.0 Apr 30, 2019
babylon.gridMaterial.d.ts First mega merge Dec 12, 2017
babylon.gridMaterial.js 4.0.2 Apr 30, 2019
babylon.gridMaterial.js.map 4.0.2 Apr 30, 2019
babylon.gridMaterial.min.js v4.0.0 Apr 30, 2019
babylon.lavaMaterial.d.ts 3.3.0 Oct 1, 2018
babylon.lavaMaterial.js 4.0.2 Apr 30, 2019
babylon.lavaMaterial.js.map 4.0.2 Apr 30, 2019
babylon.lavaMaterial.min.js v4.0.0 Apr 30, 2019
babylon.mixMaterial.d.ts 3.3.0 Oct 1, 2018
babylon.mixMaterial.js 4.0.2 Apr 30, 2019
babylon.mixMaterial.js.map 4.0.2 Apr 30, 2019
babylon.mixMaterial.min.js v4.0.0 Apr 30, 2019
babylon.normalMaterial.d.ts First mega merge Dec 12, 2017
babylon.normalMaterial.js 4.0.2 Apr 30, 2019
babylon.normalMaterial.js.map 4.0.2 Apr 30, 2019
babylon.normalMaterial.min.js v4.0.0 Apr 30, 2019
babylon.shadowOnlyMaterial.d.ts 3.3.0 Oct 1, 2018
babylon.shadowOnlyMaterial.js 4.0.2 Apr 30, 2019
babylon.shadowOnlyMaterial.js.map 4.0.2 Apr 30, 2019
babylon.shadowOnlyMaterial.min.js v4.0.0 Apr 30, 2019
babylon.simpleMaterial.d.ts First mega merge Dec 12, 2017
babylon.simpleMaterial.js 4.0.2 Apr 30, 2019
babylon.simpleMaterial.js.map 4.0.2 Apr 30, 2019
babylon.simpleMaterial.min.js v4.0.0 Apr 30, 2019
babylon.skyMaterial.d.ts First mega merge Dec 12, 2017
babylon.skyMaterial.js 4.0.2 Apr 30, 2019
babylon.skyMaterial.js.map 4.0.2 Apr 30, 2019
babylon.skyMaterial.min.js v4.0.0 Apr 30, 2019
babylon.terrainMaterial.d.ts First mega merge Dec 12, 2017
babylon.terrainMaterial.js 4.0.2 Apr 30, 2019
babylon.terrainMaterial.js.map 4.0.2 Apr 30, 2019
babylon.terrainMaterial.min.js v4.0.0 Apr 30, 2019
babylon.triPlanarMaterial.d.ts First mega merge Dec 12, 2017
babylon.triPlanarMaterial.js 4.0.2 Apr 30, 2019
babylon.triPlanarMaterial.js.map 4.0.2 Apr 30, 2019
babylon.triPlanarMaterial.min.js v4.0.0 Apr 30, 2019
babylon.waterMaterial.d.ts 3.3.0 Oct 1, 2018
babylon.waterMaterial.js 4.0.2 Apr 30, 2019
babylon.waterMaterial.js.map 4.0.2 Apr 30, 2019
babylon.waterMaterial.min.js v4.0.0 Apr 30, 2019
babylonjs.materials.d.ts v4.0.0 Apr 30, 2019
babylonjs.materials.js 4.0.2 Apr 30, 2019
babylonjs.materials.js.map 4.0.2 Apr 30, 2019
babylonjs.materials.min.js v4.0.0 Apr 30, 2019
babylonjs.materials.module.d.ts
package.json 4.0.3 May 1, 2019
readme-es6.md v4.0.0 Apr 30, 2019
readme.md v4.0.0 Apr 30, 2019

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 '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.

You can’t perform that action at this time.