@babylonjs/materials

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

Usage no npm install needed!

<script type="module">
  import babylonjsMaterials from 'https://cdn.skypack.dev/@babylonjs/materials';
</script>

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.