Package Exports
- @babylonjs/materials
- @babylonjs/materials/grid/gridMaterial
- @babylonjs/materials/shadowOnly/shadowOnlyMaterial
- @babylonjs/materials/sky/skyMaterial
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@babylonjs/materials) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Babylon.js Materials Library
For usage documentation please visit http://doc.babylonjs.com/extensions and choose "materials library".
Installation instructions
To install using npm :
npm install --save @babylonjs/core @babylonjs/materialsHow to use
Afterwards it can be imported to the your project using:
import { GridMaterial } from '@babylonjs/materials/Grid';And used as usual:
// Some awesome code
let gridMaterial = new GridMaterial("gridMaterial", scene);
// Some more awesome codeFor more information you can have a look at our our ES6 dedicated documentation.