JSPM

@babylonjs/materials

7.2.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 43420
  • Score
    100M100P100Q157056F
  • License Apache-2.0

Package Exports

  • @babylonjs/materials
  • @babylonjs/materials/custom/customMaterial
  • @babylonjs/materials/custom/customMaterial.js
  • @babylonjs/materials/fur/fur.vertex
  • @babylonjs/materials/fur/fur.vertex.js
  • @babylonjs/materials/fur/furMaterial
  • @babylonjs/materials/fur/furMaterial.js
  • @babylonjs/materials/grid
  • @babylonjs/materials/grid/gridMaterial
  • @babylonjs/materials/grid/gridMaterial.js
  • @babylonjs/materials/grid/index.js
  • @babylonjs/materials/index.js
  • @babylonjs/materials/shadowOnly
  • @babylonjs/materials/shadowOnly/index.js
  • @babylonjs/materials/shadowOnly/shadowOnlyMaterial
  • @babylonjs/materials/shadowOnly/shadowOnlyMaterial.js
  • @babylonjs/materials/sky/skyMaterial
  • @babylonjs/materials/sky/skyMaterial.js
  • @babylonjs/materials/terrain
  • @babylonjs/materials/terrain/index.js
  • @babylonjs/materials/water
  • @babylonjs/materials/water/index.js

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 https://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 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 ES6 dedicated documentation.