MaterialAttrib

from panda3d.core import MaterialAttrib
class MaterialAttrib

Bases: RenderAttrib

Indicates which, if any, material should be applied to geometry. The material is used primarily to control lighting effects, and isn’t necessary (or useful) in the absence of lighting.

Inheritance diagram

Inheritance diagram of MaterialAttrib

__init__(*args, **kwargs)
class_slot = 20
getClassSlot()

C++ Interface: get_class_slot()

getClassType()

C++ Interface: get_class_type()

getMaterial()

C++ Interface: get_material(MaterialAttrib self)

/**
  • If the MaterialAttrib is not an ‘off’ MaterialAttrib, returns the material

  • that is associated. Otherwise, return NULL.

*/

get_class_slot()

C++ Interface: get_class_slot()

get_class_type()

C++ Interface: get_class_type()

get_material()

C++ Interface: get_material(MaterialAttrib self)

/**
  • If the MaterialAttrib is not an ‘off’ MaterialAttrib, returns the material

  • that is associated. Otherwise, return NULL.

*/

isOff()

C++ Interface: is_off(MaterialAttrib self)

/**
  • Returns true if the MaterialAttrib is an ‘off’ MaterialAttrib, indicating

  • that it should disable the use of materials.

*/

is_off()

C++ Interface: is_off(MaterialAttrib self)

/**
  • Returns true if the MaterialAttrib is an ‘off’ MaterialAttrib, indicating

  • that it should disable the use of materials.

*/

make()

C++ Interface: make(Material material)

/**
  • Constructs a new MaterialAttrib object suitable for rendering the indicated

  • material onto geometry.

*/

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.

*/

makeOff()

C++ Interface: make_off()

/**
  • Constructs a new MaterialAttrib object suitable for rendering unmateriald

  • geometry.

*/

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.

*/

make_off()

C++ Interface: make_off()

/**
  • Constructs a new MaterialAttrib object suitable for rendering unmateriald

  • geometry.

*/

material