Slide 21
Slide 21 text
🗾 Babylon.js User Community in Japan . #BabylonJS #BabylonJS勉強会
Material Pluginの例
scene.meshes.forEach((m) => {
if (m.material && m.material.name !==
"skyBox") {
m.material.pluginManager.getPlugin("Colorif
y").isEnabled = true;
}});});return scene;};
class ColorifyPluginMaterial extends
BABYLON.MaterialPluginBase {
color = new BABYLON.Color3(1, 0.0, 0.0);
⾚⾊
Material plugin example with uniforms | Babylon.js Playground (babylonjs.com)