JSPM

@babylonjs/materials

4.2.0-alpha.9
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 43420
  • Score
    100M100P100Q157078F
  • License Apache-2.0

The Babylon.js materials library is a collection of advanced materials to be used in a Babylon.js scene.

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/materials

How 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 code

For more information you can have a look at our our ES6 dedicated documentation.