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 set the lighting scheme and rendering mode.
using Aspose.ThreeD;
using Aspose.ThreeD.Entities;
using Aspose.ThreeD.Shading;
using Aspose.ThreeD.Utilities;
using Aspose.ThreeD.Formats;

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

//Define material objects
var material = new PhongMaterial();
material.DiffuseColor = new Vector3(1, 2, 1);

// Create a cylinder child node
scene.RootNode.CreateChildNode("cylinder", new Cylinder()).Material = material;

//Set save options
PdfSaveOptions opt = new PdfSaveOptions();

//Set up a lighting scheme
opt.LightingScheme = PdfLightingScheme.CAD;

// Set rendering mode
opt.RenderMode = PdfRenderMode.ShadedIllustration;

//Save the scene to PDF file.
scene.Save("output.pdf", opt);

scene