class ShadeModelAttrib

Bases: RenderAttrib

Specifies whether flat shading (per-polygon) or smooth shading (per-vertex) is in effect.

Inheritance diagram

Inheritance diagram of ShadeModelAttrib

enum Mode
enumerator M_flat = 0
enumerator M_smooth = 1
static int get_class_slot(void)
static TypeHandle get_class_type(void)
Mode get_mode(void) const

Returns the shade mode.

static ConstPointerTo<RenderAttrib> make(ShadeModelAttrib::Mode mode)

Constructs a new ShadeModelAttrib object that specifies whether to draw polygons with flat shading or with per-vertex (smooth) shading.

static ConstPointerTo<RenderAttrib> make_default(void)

Returns a RenderAttrib that corresponds to whatever the standard default properties for render attributes of this type ought to be.