Cell material

Toon material

Cell material can be found here: https://cdn.babylonjs.com/materialsLibrary/babylon.cellMaterial.js

A demo can be found here: PG: Cell Material

You can customize special properties of the material:

// Create a new cell material
var cell = new BABYLON.CellMaterial("cell", scene);
// Set up the diffuse texture
cell.diffuseTexture = new BABYLON.Texture("textures/amiga.jpg", scene);
// Set up diffuse color
cell.diffuseColor = new BABYLON.Color3(1, 0.5, 0);
// Set the material to be high level (default value is true)
// The high level can compute until 5 different lighting levels
// If false, only two levels are available
cell.computeHighLevel = true;