panda3d.core.ShadeModelAttrib

from panda3d.core import ShadeModelAttrib
class ShadeModelAttrib

Bases: RenderAttrib

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

Inheritance diagram

Inheritance diagram of ShadeModelAttrib

static make(mode: Mode) → RenderAttrib

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

Return type

RenderAttrib

static makeDefault() → RenderAttrib

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

Return type

RenderAttrib

getMode() → Mode

Returns the shade mode.

Return type

Mode

static getClassSlot() → int
static getClassType() → TypeHandle
Return type

TypeHandle

property mode

Returns the shade mode.

Return type

Mode

property class_slot
Return type

int

enum Mode
enumerator M_flat = 0
enumerator M_smooth = 1