EggMaterial

from panda3d.egg import EggMaterial
class EggMaterial

Bases: EggNode

Inheritance diagram

Inheritance diagram of EggMaterial

EAttributes = 1
EMrefName = 2
E_attributes = 1
E_mref_name = 2
__init__(*args, **kwargs)
amb
base
clearAmb()

C++ Interface: clear_amb(const EggMaterial self)

/**

*/

clearBase()

C++ Interface: clear_base(const EggMaterial self)

/**
  • @since 1.10.0

*/

clearDiff()

C++ Interface: clear_diff(const EggMaterial self)

/**

*/

clearEmit()

C++ Interface: clear_emit(const EggMaterial self)

/**

*/

clearIor()

C++ Interface: clear_ior(const EggMaterial self)

/**
  • @since 1.10.0

*/

clearLocal()

C++ Interface: clear_local(const EggMaterial self)

/**

*/

clearMetallic()

C++ Interface: clear_metallic(const EggMaterial self)

/**
  • @since 1.10.0

*/

clearRoughness()

C++ Interface: clear_roughness(const EggMaterial self)

/**
  • @since 1.10.0

*/

clearShininess()

C++ Interface: clear_shininess(const EggMaterial self)

/**

*/

clearSpec()

C++ Interface: clear_spec(const EggMaterial self)

/**

*/

clear_amb()

C++ Interface: clear_amb(const EggMaterial self)

/**

*/

clear_base()

C++ Interface: clear_base(const EggMaterial self)

/**
  • @since 1.10.0

*/

clear_diff()

C++ Interface: clear_diff(const EggMaterial self)

/**

*/

clear_emit()

C++ Interface: clear_emit(const EggMaterial self)

/**

*/

clear_ior()

C++ Interface: clear_ior(const EggMaterial self)

/**
  • @since 1.10.0

*/

clear_local()

C++ Interface: clear_local(const EggMaterial self)

/**

*/

clear_metallic()

C++ Interface: clear_metallic(const EggMaterial self)

/**
  • @since 1.10.0

*/

clear_roughness()

C++ Interface: clear_roughness(const EggMaterial self)

/**
  • @since 1.10.0

*/

clear_shininess()

C++ Interface: clear_shininess(const EggMaterial self)

/**

*/

clear_spec()

C++ Interface: clear_spec(const EggMaterial self)

/**

*/

diff
emit
getAmb()

C++ Interface: get_amb(EggMaterial self)

/**
  • It is legal to call this even if has_amb() returns false. If so, it simply

  • returns the default amb color.

*/

getBase()

C++ Interface: get_base(EggMaterial self)

/**
  • It is legal to call this even if has_base() returns false. If so, it

  • simply returns the default base color.

  • @since 1.10.0

*/

getClassType()

C++ Interface: get_class_type()

getDiff()

C++ Interface: get_diff(EggMaterial self)

/**
  • It is legal to call this even if has_diff() returns false. If so, it

  • simply returns the default diff color.

*/

getEmit()

C++ Interface: get_emit(EggMaterial self)

/**
  • It is legal to call this even if has_emit() returns false. If so, it

  • simply returns the default emit color.

*/

getIor()

C++ Interface: get_ior(EggMaterial self)

/**
  • @since 1.10.0

*/

getLocal()

C++ Interface: get_local(EggMaterial self)

/**

*/

getMetallic()

C++ Interface: get_metallic(EggMaterial self)

/**
  • @since 1.10.0

*/

getRoughness()

C++ Interface: get_roughness(EggMaterial self)

/**
  • @since 1.10.0

*/

getShininess()

C++ Interface: get_shininess(EggMaterial self)

/**

*/

getSpec()

C++ Interface: get_spec(EggMaterial self)

/**
  • It is legal to call this even if has_spec() returns false. If so, it

  • simply returns the default spec color.

*/

get_amb()

C++ Interface: get_amb(EggMaterial self)

/**
  • It is legal to call this even if has_amb() returns false. If so, it simply

  • returns the default amb color.

*/

get_base()

C++ Interface: get_base(EggMaterial self)

/**
  • It is legal to call this even if has_base() returns false. If so, it

  • simply returns the default base color.

  • @since 1.10.0

*/

get_class_type()

C++ Interface: get_class_type()

get_diff()

C++ Interface: get_diff(EggMaterial self)

/**
  • It is legal to call this even if has_diff() returns false. If so, it

  • simply returns the default diff color.

*/

get_emit()

C++ Interface: get_emit(EggMaterial self)

/**
  • It is legal to call this even if has_emit() returns false. If so, it

  • simply returns the default emit color.

*/

get_ior()

C++ Interface: get_ior(EggMaterial self)

/**
  • @since 1.10.0

*/

get_local()

C++ Interface: get_local(EggMaterial self)

/**

*/

get_metallic()

C++ Interface: get_metallic(EggMaterial self)

/**
  • @since 1.10.0

*/

get_roughness()

C++ Interface: get_roughness(EggMaterial self)

/**
  • @since 1.10.0

*/

get_shininess()

C++ Interface: get_shininess(EggMaterial self)

/**

*/

get_spec()

C++ Interface: get_spec(EggMaterial self)

/**
  • It is legal to call this even if has_spec() returns false. If so, it

  • simply returns the default spec color.

*/

hasAmb()

C++ Interface: has_amb(EggMaterial self)

/**

*/

hasBase()

C++ Interface: has_base(EggMaterial self)

/**
  • @since 1.10.0

*/

hasDiff()

C++ Interface: has_diff(EggMaterial self)

/**

*/

hasEmit()

C++ Interface: has_emit(EggMaterial self)

/**

*/

hasIor()

C++ Interface: has_ior(EggMaterial self)

/**
  • @since 1.10.0

*/

hasLocal()

C++ Interface: has_local(EggMaterial self)

/**

*/

hasMetallic()

C++ Interface: has_metallic(EggMaterial self)

/**
  • @since 1.10.0

*/

hasRoughness()

C++ Interface: has_roughness(EggMaterial self)

/**
  • @since 1.10.0

*/

hasShininess()

C++ Interface: has_shininess(EggMaterial self)

/**

*/

hasSpec()

C++ Interface: has_spec(EggMaterial self)

/**

*/

has_amb()

C++ Interface: has_amb(EggMaterial self)

/**

*/

has_base()

C++ Interface: has_base(EggMaterial self)

/**
  • @since 1.10.0

*/

has_diff()

C++ Interface: has_diff(EggMaterial self)

/**

*/

has_emit()

C++ Interface: has_emit(EggMaterial self)

/**

*/

has_ior()

C++ Interface: has_ior(EggMaterial self)

/**
  • @since 1.10.0

*/

has_local()

C++ Interface: has_local(EggMaterial self)

/**

*/

has_metallic()

C++ Interface: has_metallic(EggMaterial self)

/**
  • @since 1.10.0

*/

has_roughness()

C++ Interface: has_roughness(EggMaterial self)

/**
  • @since 1.10.0

*/

has_shininess()

C++ Interface: has_shininess(EggMaterial self)

/**

*/

has_spec()

C++ Interface: has_spec(EggMaterial self)

/**

*/

ior
isEquivalentTo()

C++ Interface: is_equivalent_to(EggMaterial self, const EggMaterial other, int eq)

/**
  • Returns true if the two materials are equivalent in all relevant properties

  • (according to eq), false otherwise.

  • The Equivalence parameter, eq, should be set to the bitwise OR of the

  • following properties, according to what you consider relevant:

  • EggMaterial::E_attributes: All material attributes (diff, spec, etc.)

  • except MRef name.

  • EggMaterial::E_mref_name: The MRef name.

*/

is_equivalent_to()

C++ Interface: is_equivalent_to(EggMaterial self, const EggMaterial other, int eq)

/**
  • Returns true if the two materials are equivalent in all relevant properties

  • (according to eq), false otherwise.

  • The Equivalence parameter, eq, should be set to the bitwise OR of the

  • following properties, according to what you consider relevant:

  • EggMaterial::E_attributes: All material attributes (diff, spec, etc.)

  • except MRef name.

  • EggMaterial::E_mref_name: The MRef name.

*/

local
metallic
roughness
setAmb()

C++ Interface: set_amb(const EggMaterial self, const LVecBase4f amb)

/**

*/

setBase()

C++ Interface: set_base(const EggMaterial self, const LVecBase4f base)

/**
  • @since 1.10.0

*/

setDiff()

C++ Interface: set_diff(const EggMaterial self, const LVecBase4f diff)

/**

*/

setEmit()

C++ Interface: set_emit(const EggMaterial self, const LVecBase4f emit)

/**

*/

setIor()

C++ Interface: set_ior(const EggMaterial self, double ior)

/**
  • @since 1.10.0

*/

setLocal()

C++ Interface: set_local(const EggMaterial self, bool local)

/**

*/

setMetallic()

C++ Interface: set_metallic(const EggMaterial self, double metallic)

/**
  • @since 1.10.0

*/

setRoughness()

C++ Interface: set_roughness(const EggMaterial self, double roughness)

/**
  • @since 1.10.0

*/

setShininess()

C++ Interface: set_shininess(const EggMaterial self, double shininess)

/**

*/

setSpec()

C++ Interface: set_spec(const EggMaterial self, const LVecBase4f spec)

/**

*/

set_amb()

C++ Interface: set_amb(const EggMaterial self, const LVecBase4f amb)

/**

*/

set_base()

C++ Interface: set_base(const EggMaterial self, const LVecBase4f base)

/**
  • @since 1.10.0

*/

set_diff()

C++ Interface: set_diff(const EggMaterial self, const LVecBase4f diff)

/**

*/

set_emit()

C++ Interface: set_emit(const EggMaterial self, const LVecBase4f emit)

/**

*/

set_ior()

C++ Interface: set_ior(const EggMaterial self, double ior)

/**
  • @since 1.10.0

*/

set_local()

C++ Interface: set_local(const EggMaterial self, bool local)

/**

*/

set_metallic()

C++ Interface: set_metallic(const EggMaterial self, double metallic)

/**
  • @since 1.10.0

*/

set_roughness()

C++ Interface: set_roughness(const EggMaterial self, double roughness)

/**
  • @since 1.10.0

*/

set_shininess()

C++ Interface: set_shininess(const EggMaterial self, double shininess)

/**

*/

set_spec()

C++ Interface: set_spec(const EggMaterial self, const LVecBase4f spec)

/**

*/

shininess
sortsLessThan()

C++ Interface: sorts_less_than(EggMaterial self, const EggMaterial other, int eq)

/**
  • An ordering operator to compare two materials for sorting order. This

  • imposes an arbitrary ordering useful to identify unique materials,

  • according to the indicated Equivalence factor. See is_equivalent_to().

*/

sorts_less_than()

C++ Interface: sorts_less_than(EggMaterial self, const EggMaterial other, int eq)

/**
  • An ordering operator to compare two materials for sorting order. This

  • imposes an arbitrary ordering useful to identify unique materials,

  • according to the indicated Equivalence factor. See is_equivalent_to().

*/

spec