set_flat_shading: Enable flat shading for ggseg3d plot

View source: R/additions.R

set_flat_shadingR Documentation

Enable flat shading for ggseg3d plot

Description

Disables lighting effects to show colors exactly as specified. Useful for screenshots where accurate color reproduction is needed, such as atlas creation pipelines that extract contours from images.

Usage

set_flat_shading(p, flat = TRUE)

Arguments

p

ggseg3d widget object

flat

logical. Enable flat shading (default: TRUE)

Value

ggseg3d widget object with updated shading

Examples

## Not run: 
ggseg3d() |>
  set_flat_shading()

## End(Not run)

ggseg3d documentation built on Feb. 21, 2026, 1:06 a.m.