Hi, I can update the texture by using the function below. Is it possible to update the GlossinessPBR factor from say 0.3 to 0.9 using the API?
If yes how would you do this?
GlossinessPBR
enable
true
factor
0.3
function apply_the_change(materialToUpdate) {
my_api.setMaterial( materialToUpdate, function() {
my_api.updateTexture(
my_image_url,
materialToUpdate.channels.DiffusePBR.texture.uid,
function ( err, materialToUpdate ) {
}
);
} );