I’ve made a script that’s supposed to make lava flow, but I’m not sure how to add it to the material.
Here’s the script.
var Lavaflow = pc.createScript('lavaflow');
// initialize code called once per entity
Lavaflow.prototype.initialize = function() {
};
// update code called every frame
Lavaflow.prototype.update = function(dt) {
};