Skip to content

RenderMode

The shading style used to render faces in the viewport.

let model = await SketchUpApi.getActiveModel();
// Show edges only, no faces
await model.updateRenderingOptions({
RenderMode:
SketchUpApi.RenderMode.Wireframe,
});
// Re-apply the current camera to force
// SketchUp to redraw immediately
let cam = await model.view.getCamera();
await model.view.setCamera(cam);

Flat: 2

Flat shading — no gradients or texture.


Hidden: 1

Faces are rendered and edges behind faces are hidden.


NoMaterials: 5

Smooth shading without material colors — default face colors only.


PhysicallyBased: 6

Physically-based rendering (PBR) mode.


Smooth: 3

Smooth shading with lighting. The default render mode.


Wireframe: 0

Shows only edges — faces are not rendered.

TextureObsolete: 4