Customizing Materials: The Community Ninja Tale

Amazing gif from https://github.com/programmingninjas
https://playground.babylonjs.com/#6A661C

TIME TO CODE… yes, finally \o/

Creating a plugin is really simple, basically the implementation of a plugin consists of inheriting from our base plugin class and overriding a couple of functions. You can learn more from our documentation.

https://playground.babylonjs.com/#IQPBS4#51

Going Further

Now, it would be great to be able to do more and for instance control the current plugin state. As you can read below, the only trick to know is to ensure our materials are flagged as dirty when toggling the plugin state.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Babylon.js

Babylon.js

1.4K Followers

Babylon.js: Powerful, Beautiful, Simple, Open — Web-Based 3D At Its Best. https://www.babylonjs.com/