Raanan Weber 034b01a4b2 presenting declaration dependencies 7 anos atrás
..
babylon.backgroundMaterial.d.ts 41ec0c8334 BackGround Material 7 anos atrás
babylon.backgroundMaterial.js 41ec0c8334 BackGround Material 7 anos atrás
babylon.backgroundMaterial.min.js 41ec0c8334 BackGround Material 7 anos atrás
babylon.cellMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 anos atrás
babylon.cellMaterial.js 7ffbc66745 Moved to --strict everywhere 7 anos atrás
babylon.cellMaterial.min.js 7ffbc66745 Moved to --strict everywhere 7 anos atrás
babylon.customMaterial.d.ts a69fc1e14d Nightly 7 anos atrás
babylon.customMaterial.js 7ffbc66745 Moved to --strict everywhere 7 anos atrás
babylon.customMaterial.min.js 616cec159f Nightly 7 anos atrás
babylon.fireMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 anos atrás
babylon.fireMaterial.js 7ffbc66745 Moved to --strict everywhere 7 anos atrás
babylon.fireMaterial.min.js 7ffbc66745 Moved to --strict everywhere 7 anos atrás
babylon.furMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 anos atrás
babylon.furMaterial.js 7ffbc66745 Moved to --strict everywhere 7 anos atrás
babylon.furMaterial.min.js 7ffbc66745 Moved to --strict everywhere 7 anos atrás
babylon.gradientMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 anos atrás
babylon.gradientMaterial.js 73efbd9aac Fix #4000 7 anos atrás
babylon.gradientMaterial.min.js 73efbd9aac Fix #4000 7 anos atrás
babylon.gridMaterial.d.ts 585579b7ab Fix how inspector was displaying axes 7 anos atrás
babylon.gridMaterial.js 7ffbc66745 Moved to --strict everywhere 7 anos atrás
babylon.gridMaterial.min.js 7ffbc66745 Moved to --strict everywhere 7 anos atrás
babylon.lavaMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 anos atrás
babylon.lavaMaterial.js 7ffbc66745 Moved to --strict everywhere 7 anos atrás
babylon.lavaMaterial.min.js 7ffbc66745 Moved to --strict everywhere 7 anos atrás
babylon.normalMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 anos atrás
babylon.normalMaterial.js 7ffbc66745 Moved to --strict everywhere 7 anos atrás
babylon.normalMaterial.min.js 7ffbc66745 Moved to --strict everywhere 7 anos atrás
babylon.shadowOnlyMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 anos atrás
babylon.shadowOnlyMaterial.js 7ffbc66745 Moved to --strict everywhere 7 anos atrás
babylon.shadowOnlyMaterial.min.js 616cec159f Nightly 7 anos atrás
babylon.simpleMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 anos atrás
babylon.simpleMaterial.js 7ffbc66745 Moved to --strict everywhere 7 anos atrás
babylon.simpleMaterial.min.js 7ffbc66745 Moved to --strict everywhere 7 anos atrás
babylon.skyMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 anos atrás
babylon.skyMaterial.js 7ffbc66745 Moved to --strict everywhere 7 anos atrás
babylon.skyMaterial.min.js 7ffbc66745 Moved to --strict everywhere 7 anos atrás
babylon.terrainMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 anos atrás
babylon.terrainMaterial.js 7ffbc66745 Moved to --strict everywhere 7 anos atrás
babylon.terrainMaterial.min.js 7ffbc66745 Moved to --strict everywhere 7 anos atrás
babylon.triPlanarMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 anos atrás
babylon.triPlanarMaterial.js 7ffbc66745 Moved to --strict everywhere 7 anos atrás
babylon.triPlanarMaterial.min.js 7ffbc66745 Moved to --strict everywhere 7 anos atrás
babylon.waterMaterial.d.ts 0c25159dcb Add constant animation timing for engine testing prupose 7 anos atrás
babylon.waterMaterial.js 7ffbc66745 Moved to --strict everywhere 7 anos atrás
babylon.waterMaterial.min.js 616cec159f Nightly 7 anos atrás
babylonjs.materials.d.ts 034b01a4b2 presenting declaration dependencies 7 anos atrás
babylonjs.materials.js c3f48c63bf beta.3 7 anos atrás
babylonjs.materials.min.js 616cec159f Nightly 7 anos atrás
babylonjs.materials.module.d.ts 5c4a0ee5e4 Fix fresnel serialization issue 7 anos atrás
package.json c3f48c63bf beta.3 7 anos atrás
readme.md 2561068aad Small error in the readme files of the submodules. 7 anos atrás

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.