David Catuhe 0323e97e00 merge 7 лет назад
..
babylon.cellMaterial.js 62e826d3d6 more individual materials 7 лет назад
babylon.cellMaterial.js.map 62e826d3d6 more individual materials 7 лет назад
babylon.cellMaterial.min.js 618576ad1e Add first work for mat libs 7 лет назад
babylon.cellMaterial.min.js.map 62e826d3d6 more individual materials 7 лет назад
babylon.customMaterial.js 62e826d3d6 more individual materials 7 лет назад
babylon.customMaterial.js.map 62e826d3d6 more individual materials 7 лет назад
babylon.customMaterial.min.js 0323e97e00 merge 7 лет назад
babylon.customMaterial.min.js.map 62e826d3d6 more individual materials 7 лет назад
babylon.fireMaterial.js 62e826d3d6 more individual materials 7 лет назад
babylon.fireMaterial.js.map 0323e97e00 merge 7 лет назад
babylon.fireMaterial.min.js 62e826d3d6 more individual materials 7 лет назад
babylon.fireMaterial.min.js.map 62e826d3d6 more individual materials 7 лет назад
babylon.gradientMaterial.js 62e826d3d6 more individual materials 7 лет назад
babylon.gradientMaterial.js.map 62e826d3d6 more individual materials 7 лет назад
babylon.gradientMaterial.min.js 62e826d3d6 more individual materials 7 лет назад
babylon.gradientMaterial.min.js.map 62e826d3d6 more individual materials 7 лет назад
babylon.lavaMaterial.js 62e826d3d6 more individual materials 7 лет назад
babylon.lavaMaterial.js.map 62e826d3d6 more individual materials 7 лет назад
babylon.lavaMaterial.min.js 62e826d3d6 more individual materials 7 лет назад
babylon.lavaMaterial.min.js.map 62e826d3d6 more individual materials 7 лет назад
babylon.materials.d.ts 618576ad1e Add first work for mat libs 7 лет назад
babylon.materials.js 62e826d3d6 more individual materials 7 лет назад
babylon.materials.js.map 62e826d3d6 more individual materials 7 лет назад
babylon.materials.min.js 618576ad1e Add first work for mat libs 7 лет назад
babylon.materials.min.js.map 618576ad1e Add first work for mat libs 7 лет назад
babylon.materials.module.d.ts 618576ad1e Add first work for mat libs 7 лет назад
babylon.mixMaterial.js 62e826d3d6 more individual materials 7 лет назад
babylon.mixMaterial.js.map 62e826d3d6 more individual materials 7 лет назад
babylon.mixMaterial.min.js 62e826d3d6 more individual materials 7 лет назад
babylon.mixMaterial.min.js.map 62e826d3d6 more individual materials 7 лет назад
babylon.normalMaterial.js 62e826d3d6 more individual materials 7 лет назад
babylon.normalMaterial.js.map 62e826d3d6 more individual materials 7 лет назад
babylon.normalMaterial.min.js 62e826d3d6 more individual materials 7 лет назад
babylon.normalMaterial.min.js.map 62e826d3d6 more individual materials 7 лет назад
babylon.shadowOnlyMaterial.min.js 0323e97e00 merge 7 лет назад
babylon.shadowOnlyMaterial.min.js.map 0323e97e00 merge 7 лет назад
package.json 0c45123dd5 Fix #5275 7 лет назад
readme.md 2561068aad Small error in the readme files of the submodules. 8 лет назад

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.