CustomMaterial and PBRCustomMaterial undefined?

Hi. I imported babylon current stable release, and am trying to create a CustomMaterial as in https://playground.babylonjs.com/#LZ0656#2. However, both BABYLON.CustomMaterial and BABYLON.PBRCustomMaterial come out as undefined.

Are these materials parts of an extension package one needs to import separately? Have they been renamed or deprecated? Can’t find what I am doing wrong.

They are part of the materials library:


https://preview.babylonjs.com/materialsLibrary/babylonjs.materials.min.js
2 Likes