You can write code here to use Aspose.3D and run the code in browser to see how it works.
Step 3 of 3: The following code shows how to add metal material to the box and make its surface rough.
using Aspose.ThreeD;
using Aspose.ThreeD.Entities;
using Aspose.ThreeD.Shading;
using Aspose.ThreeD.Utilities;

//Create a new 3D scene
Scene scene = new Scene();

//create a box to which the material will be applied
var boxNode = scene.RootNode.CreateChildNode("box", new Box());

//initialize PBR material object
PbrMaterial mat = new PbrMaterial();

// an almost metal material
mat.MetallicFactor = 0.9;

mat.Albedo = new Vector3(0.3, 0.8, 0.8);

// material surface is very rough
mat.RoughnessFactor = 0.4;

boxNode.Material = mat;

scene