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

MFlat = 0
MSmooth = 1
M_flat = 0
M_smooth = 1
__init__(*args, **kwargs)
class_slot = 24
getClassSlot()

C++ Interface: get_class_slot()

getClassType()

C++ Interface: get_class_type()

getMode()

C++ Interface: get_mode(ShadeModelAttrib self)

/**
  • Returns the shade mode.

*/

get_class_slot()

C++ Interface: get_class_slot()

get_class_type()

C++ Interface: get_class_type()

get_mode()

C++ Interface: get_mode(ShadeModelAttrib self)

/**
  • Returns the shade mode.

*/

make()

C++ Interface: make(int mode)

/**
  • Constructs a new ShadeModelAttrib object that specifies whether to draw

  • polygons with flat shading or with per-vertex (smooth) shading.

*/

makeDefault()

C++ Interface: make_default()

/**
  • Returns a RenderAttrib that corresponds to whatever the standard default

  • properties for render attributes of this type ought to be.

*/

make_default()

C++ Interface: make_default()

/**
  • Returns a RenderAttrib that corresponds to whatever the standard default

  • properties for render attributes of this type ought to be.

*/

mode