Hi John, thank you for taking the time to help me troubleshoot. I updated the code with the comma and now I am getting the full expected output:
Despite that, I am still unable to access the ambientColor property for the object within the BJS Editor. Shouldn’t it be right under alphaMode in the contextual menu?
Furthermore, I noticed something strange. I’m not sure if it’s worth mentioning but maybe someone can make something of it. I updated your playground example with two new lines of code:
var temp_mat = new BABYLON.StandardMaterial(“temp_mat”, scene);
temp_mat = scene.materials;
As expected, the assignment from scene.materials to temp_mat does not give any errors. Why would it, after all, according to .getClass(), scene.materials is class StandardMaterial (established in previous posts). However, over in BJS Editor, the same two lines of code fail with the following error:
Thanks all, for your time. Hope I’m not making a mountain out of a molehill