David Catuhe c53c5ae445 4.0.0-alpha.1 7 år sedan
..
babylon.backgroundMaterial.d.ts 41ec0c8334 BackGround Material 7 år sedan
babylon.backgroundMaterial.js 41ec0c8334 BackGround Material 7 år sedan
babylon.backgroundMaterial.min.js 41ec0c8334 BackGround Material 7 år sedan
babylon.cellMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 år sedan
babylon.cellMaterial.js 1a920cbb83 Full build 7 år sedan
babylon.cellMaterial.min.js 2de9bb3e81 Added clip planes 7 år sedan
babylon.customMaterial.d.ts a69fc1e14d Nightly 7 år sedan
babylon.customMaterial.js 9f52a66941 Fixed minor TypeScript typing errors that occurred on upgrading to 7 år sedan
babylon.customMaterial.min.js 9f52a66941 Fixed minor TypeScript typing errors that occurred on upgrading to 7 år sedan
babylon.fireMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 år sedan
babylon.fireMaterial.js 1a920cbb83 Full build 7 år sedan
babylon.fireMaterial.min.js 2de9bb3e81 Added clip planes 7 år sedan
babylon.furMaterial.d.ts f61c739245 Fixing quaternion interpolation issue 7 år sedan
babylon.furMaterial.js 1a920cbb83 Full build 7 år sedan
babylon.furMaterial.min.js 2de9bb3e81 Added clip planes 7 år sedan
babylon.gradientMaterial.d.ts 4524778945 Fix gradient material 7 år sedan
babylon.gradientMaterial.js 1a920cbb83 Full build 7 år sedan
babylon.gradientMaterial.min.js 2de9bb3e81 Added clip planes 7 år sedan
babylon.gridMaterial.d.ts 585579b7ab Fix how inspector was displaying axes 7 år sedan
babylon.gridMaterial.js 1a920cbb83 Full build 7 år sedan
babylon.gridMaterial.min.js 9f52a66941 Fixed minor TypeScript typing errors that occurred on upgrading to 7 år sedan
babylon.lavaMaterial.d.ts ae0fce51f5 Nightly + unlit LAVA 7 år sedan
babylon.lavaMaterial.js 1a920cbb83 Full build 7 år sedan
babylon.lavaMaterial.min.js ae0fce51f5 Nightly + unlit LAVA 7 år sedan
babylon.mixMaterial.d.ts c2d5afdcc2 Nightly 7 år sedan
babylon.mixMaterial.js 1a920cbb83 Full build 7 år sedan
babylon.mixMaterial.min.js 2de9bb3e81 Added clip planes 7 år sedan
babylon.normalMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 år sedan
babylon.normalMaterial.js 1a920cbb83 Full build 7 år sedan
babylon.normalMaterial.min.js 2de9bb3e81 Added clip planes 7 år sedan
babylon.shadowOnlyMaterial.d.ts d40a5d75b4 Add color to ShadowOnlyMaterial 7 år sedan
babylon.shadowOnlyMaterial.js 1a920cbb83 Full build 7 år sedan
babylon.shadowOnlyMaterial.min.js 2de9bb3e81 Added clip planes 7 år sedan
babylon.simpleMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 år sedan
babylon.simpleMaterial.js 1a920cbb83 Full build 7 år sedan
babylon.simpleMaterial.min.js 2de9bb3e81 Added clip planes 7 år sedan
babylon.skyMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 år sedan
babylon.skyMaterial.js 1a920cbb83 Full build 7 år sedan
babylon.skyMaterial.min.js 2de9bb3e81 Added clip planes 7 år sedan
babylon.terrainMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 år sedan
babylon.terrainMaterial.js 1a920cbb83 Full build 7 år sedan
babylon.terrainMaterial.min.js 2de9bb3e81 Added clip planes 7 år sedan
babylon.triPlanarMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 år sedan
babylon.triPlanarMaterial.js 1a920cbb83 Full build 7 år sedan
babylon.triPlanarMaterial.min.js 2de9bb3e81 Added clip planes 7 år sedan
babylon.waterMaterial.d.ts 0f3d34ef38 Nightly 7 år sedan
babylon.waterMaterial.js 0c45123dd5 Fix #5275 7 år sedan
babylon.waterMaterial.min.js 0c45123dd5 Fix #5275 7 år sedan
babylonjs.materials.d.ts 0f3d34ef38 Nightly 7 år sedan
babylonjs.materials.js 0c45123dd5 Fix #5275 7 år sedan
babylonjs.materials.min.js 0c45123dd5 Fix #5275 7 år sedan
babylonjs.materials.module.d.ts 0f3d34ef38 Nightly 7 år sedan
package.json c53c5ae445 4.0.0-alpha.1 7 år sedan
readme.md 2561068aad Small error in the readme files of the submodules. 7 år sedan

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.