Raanan Weber a8ff0ebf89 3.3.0-alpha.8 7 年 前
..
babylon.backgroundMaterial.d.ts 41ec0c8334 BackGround Material 7 年 前
babylon.backgroundMaterial.js 41ec0c8334 BackGround Material 7 年 前
babylon.backgroundMaterial.min.js 41ec0c8334 BackGround Material 7 年 前
babylon.cellMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 年 前
babylon.cellMaterial.js 829086265b Nightly 7 年 前
babylon.cellMaterial.min.js 829086265b Nightly 7 年 前
babylon.customMaterial.d.ts a69fc1e14d Nightly 7 年 前
babylon.customMaterial.js b93c44f06f Moving all codebase to TS 2.8.1 7 年 前
babylon.customMaterial.min.js b93c44f06f Moving all codebase to TS 2.8.1 7 年 前
babylon.fireMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 年 前
babylon.fireMaterial.js b93c44f06f Moving all codebase to TS 2.8.1 7 年 前
babylon.fireMaterial.min.js b93c44f06f Moving all codebase to TS 2.8.1 7 年 前
babylon.furMaterial.d.ts f61c739245 Fixing quaternion interpolation issue 7 年 前
babylon.furMaterial.js f61c739245 Fixing quaternion interpolation issue 7 年 前
babylon.furMaterial.min.js f61c739245 Fixing quaternion interpolation issue 7 年 前
babylon.gradientMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 年 前
babylon.gradientMaterial.js b93c44f06f Moving all codebase to TS 2.8.1 7 年 前
babylon.gradientMaterial.min.js b93c44f06f Moving all codebase to TS 2.8.1 7 年 前
babylon.gridMaterial.d.ts 585579b7ab Fix how inspector was displaying axes 7 年 前
babylon.gridMaterial.js b93c44f06f Moving all codebase to TS 2.8.1 7 年 前
babylon.gridMaterial.min.js b93c44f06f Moving all codebase to TS 2.8.1 7 年 前
babylon.lavaMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 年 前
babylon.lavaMaterial.js b93c44f06f Moving all codebase to TS 2.8.1 7 年 前
babylon.lavaMaterial.min.js b93c44f06f Moving all codebase to TS 2.8.1 7 年 前
babylon.mixMaterial.d.ts c2d5afdcc2 Nightly 7 年 前
babylon.mixMaterial.js 71283c76e8 Update UtilityLayer to capture pointers 7 年 前
babylon.mixMaterial.min.js 71283c76e8 Update UtilityLayer to capture pointers 7 年 前
babylon.normalMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 年 前
babylon.normalMaterial.js b93c44f06f Moving all codebase to TS 2.8.1 7 年 前
babylon.normalMaterial.min.js b93c44f06f Moving all codebase to TS 2.8.1 7 年 前
babylon.shadowOnlyMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 年 前
babylon.shadowOnlyMaterial.js b93c44f06f Moving all codebase to TS 2.8.1 7 年 前
babylon.shadowOnlyMaterial.min.js b93c44f06f Moving all codebase to TS 2.8.1 7 年 前
babylon.simpleMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 年 前
babylon.simpleMaterial.js b93c44f06f Moving all codebase to TS 2.8.1 7 年 前
babylon.simpleMaterial.min.js b93c44f06f Moving all codebase to TS 2.8.1 7 年 前
babylon.skyMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 年 前
babylon.skyMaterial.js b93c44f06f Moving all codebase to TS 2.8.1 7 年 前
babylon.skyMaterial.min.js b93c44f06f Moving all codebase to TS 2.8.1 7 年 前
babylon.terrainMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 年 前
babylon.terrainMaterial.js b93c44f06f Moving all codebase to TS 2.8.1 7 年 前
babylon.terrainMaterial.min.js b93c44f06f Moving all codebase to TS 2.8.1 7 年 前
babylon.triPlanarMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 年 前
babylon.triPlanarMaterial.js b93c44f06f Moving all codebase to TS 2.8.1 7 年 前
babylon.triPlanarMaterial.min.js b93c44f06f Moving all codebase to TS 2.8.1 7 年 前
babylon.waterMaterial.d.ts 0c25159dcb Add constant animation timing for engine testing prupose 7 年 前
babylon.waterMaterial.js b93c44f06f Moving all codebase to TS 2.8.1 7 年 前
babylon.waterMaterial.min.js b93c44f06f Moving all codebase to TS 2.8.1 7 年 前
babylonjs.materials.d.ts c2d5afdcc2 Nightly 7 年 前
babylonjs.materials.js 71283c76e8 Update UtilityLayer to capture pointers 7 年 前
babylonjs.materials.min.js 71283c76e8 Update UtilityLayer to capture pointers 7 年 前
babylonjs.materials.module.d.ts c2d5afdcc2 Nightly 7 年 前
package.json a8ff0ebf89 3.3.0-alpha.8 7 年 前
readme.md 2561068aad Small error in the readme files of the submodules. 7 年 前

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.