David Catuhe 96e9dfe5da 4.0.0-alpha.11 6 年之前
..
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 1a920cbb83 Full build 7 年之前
babylon.cellMaterial.min.js 2de9bb3e81 Added clip planes 7 年之前
babylon.customMaterial.d.ts a69fc1e14d Nightly 7 年之前
babylon.customMaterial.js 9f52a66941 Fixed minor TypeScript typing errors that occurred on upgrading to 7 年之前
babylon.customMaterial.min.js 9f52a66941 Fixed minor TypeScript typing errors that occurred on upgrading to 7 年之前
babylon.fireMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 年之前
babylon.fireMaterial.js 1a920cbb83 Full build 7 年之前
babylon.fireMaterial.min.js 2de9bb3e81 Added clip planes 7 年之前
babylon.furMaterial.d.ts f61c739245 Fixing quaternion interpolation issue 7 年之前
babylon.furMaterial.js 1a920cbb83 Full build 7 年之前
babylon.furMaterial.min.js 2de9bb3e81 Added clip planes 7 年之前
babylon.gradientMaterial.d.ts 4524778945 Fix gradient material 7 年之前
babylon.gradientMaterial.js 1a920cbb83 Full build 7 年之前
babylon.gradientMaterial.min.js 2de9bb3e81 Added clip planes 7 年之前
babylon.gridMaterial.d.ts bcc5a99f47 Add opacity texture to gridMaterial 6 年之前
babylon.gridMaterial.js 565131816e Fix compilation 6 年之前
babylon.gridMaterial.min.js 565131816e Fix compilation 6 年之前
babylon.lavaMaterial.d.ts ae0fce51f5 Nightly + unlit LAVA 7 年之前
babylon.lavaMaterial.js 1a920cbb83 Full build 7 年之前
babylon.lavaMaterial.min.js ae0fce51f5 Nightly + unlit LAVA 7 年之前
babylon.mixMaterial.d.ts c2d5afdcc2 Nightly 7 年之前
babylon.mixMaterial.js 1a920cbb83 Full build 7 年之前
babylon.mixMaterial.min.js 2de9bb3e81 Added clip planes 7 年之前
babylon.normalMaterial.d.ts 87bfd53155 Fix normal material to ignore vertexAlpha and vertex colors 6 年之前
babylon.normalMaterial.js ce883c99a0 Fixed normal material with disablelighting = true 6 年之前
babylon.normalMaterial.min.js ce883c99a0 Fixed normal material with disablelighting = true 6 年之前
babylon.shadowOnlyMaterial.d.ts d40a5d75b4 Add color to ShadowOnlyMaterial 7 年之前
babylon.shadowOnlyMaterial.js 1a920cbb83 Full build 7 年之前
babylon.shadowOnlyMaterial.min.js 2de9bb3e81 Added clip planes 7 年之前
babylon.simpleMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 年之前
babylon.simpleMaterial.js 1a920cbb83 Full build 7 年之前
babylon.simpleMaterial.min.js 2de9bb3e81 Added clip planes 7 年之前
babylon.skyMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 年之前
babylon.skyMaterial.js 1a920cbb83 Full build 7 年之前
babylon.skyMaterial.min.js 2de9bb3e81 Added clip planes 7 年之前
babylon.terrainMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 年之前
babylon.terrainMaterial.js 1a920cbb83 Full build 7 年之前
babylon.terrainMaterial.min.js 2de9bb3e81 Added clip planes 7 年之前
babylon.triPlanarMaterial.d.ts 4a513abe21 Associated with #2982 (Holy cow!!) 7 年之前
babylon.triPlanarMaterial.js 1a920cbb83 Full build 7 年之前
babylon.triPlanarMaterial.min.js 2de9bb3e81 Added clip planes 7 年之前
babylon.waterMaterial.d.ts 0f3d34ef38 Nightly 7 年之前
babylon.waterMaterial.js 0c45123dd5 Fix #5275 7 年之前
babylon.waterMaterial.min.js 0c45123dd5 Fix #5275 7 年之前
babylonjs.materials.d.ts 87bfd53155 Fix normal material to ignore vertexAlpha and vertex colors 6 年之前
babylonjs.materials.js 565131816e Fix compilation 6 年之前
babylonjs.materials.min.js 565131816e Fix compilation 6 年之前
babylonjs.materials.module.d.ts 87bfd53155 Fix normal material to ignore vertexAlpha and vertex colors 6 年之前
package.json 96e9dfe5da 4.0.0-alpha.11 6 年之前
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.