RenderMode
The shading style used to render faces in the viewport.
Example
Section titled “Example”let model = await SketchUpApi.getActiveModel();// Show edges only, no facesawait model.updateRenderingOptions({ RenderMode: SketchUpApi.RenderMode.Wireframe,});
// Re-apply the current camera to force// SketchUp to redraw immediatelylet cam = await model.view.getCamera();await model.view.setCamera(cam);Enumeration Members
Section titled “Enumeration Members”Flat:
2
Flat shading — no gradients or texture.
Hidden
Section titled “Hidden”Hidden:
1
Faces are rendered and edges behind faces are hidden.
NoMaterials
Section titled “NoMaterials”NoMaterials:
5
Smooth shading without material colors — default face colors only.
PhysicallyBased
Section titled “PhysicallyBased”PhysicallyBased:
6
Physically-based rendering (PBR) mode.
Smooth
Section titled “Smooth”Smooth:
3
Smooth shading with lighting. The default render mode.
Wireframe
Section titled “Wireframe”Wireframe:
0
Shows only edges — faces are not rendered.
Deprecated
Section titled “Deprecated”TextureObsolete
Section titled “TextureObsolete”TextureObsolete:
4