JSPM

@babylonjs/materials

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

Package Exports

    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.