EggMaterial
from panda3d.egg import EggMaterial
- class EggMaterial
Bases:
EggNode
Inheritance diagram
- EAttributes = 1
- EMrefName = 2
- E_attributes = 1
- E_mref_name = 2
- __init__(*args, **kwargs)
- amb
- base
- 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.
*/
- 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_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.
*/
- 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
- setBase()
C++ Interface: set_base(const EggMaterial self, const LVecBase4f base)
- /**
@since 1.10.0
*/
- 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
*/
- set_base()
C++ Interface: set_base(const EggMaterial self, const LVecBase4f base)
- /**
@since 1.10.0
*/
- 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
*/
- 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