const comp = node.addComponent(ModelComponent);
comp.mesh = meshSphere;
const m = new Material();
m.initialize({
effectName: 'builtin-standard',
});
m.setProperty('roughness', math.clamp(j / cols, 0.05, 1));
m.setProperty('metallic', i / rows);
m.setProperty('albedo', albedo);
comp.material = m; models.push(comp);
This seems to be a way , but it is not clear how to Set Albedomap .