I created a material using below code:
context = VRay::Context.active
scene = context.scene
scene.change{
my_material_plugin = scene.create(:MtlSingleBRDF, '/MyMaterialPlugin')
my_material_plugin[:brdf] = scene.create(:BRDFVRayMtl, '/vray')
}
But the mtl created by above code is not similar to the vraymtl created manually (please see image below)
How can I fix this?
