TexMatrixAttrib
from panda3d.core import TexMatrixAttrib
- class TexMatrixAttrib
Bases:
Bases:
RenderAttrib
Applies a transform matrix to UV’s before they are rendered.
Inheritance diagram
- add_stage(stage: TextureStage, transform: TransformState, override: int) RenderAttrib
Returns a new
TexMatrixAttrib
just like this one, with the indicated transform for the given stage. If this stage already exists, its transform is replaced.
- static get_class_type() TypeHandle
- get_geom_rendering(geom_rendering: int) int
Returns the union of the Geom::GeomRendering bits that will be required once this
TexMatrixAttrib
is applied to a geom which includes the indicated geom_rendering bits.
- get_mat(stage: TextureStage) LMatrix4
Returns the transformation matrix associated with the indicated texture stage, or identity matrix if nothing is associated with the indicated stage.
- get_override(stage: TextureStage) int
Returns the override value associated with the indicated stage.
- get_stage(n: int) TextureStage
Returns the nth stage that is represented by this attrib. The
TextureStages
are in no particular order.
- get_transform(stage: TextureStage) TransformState
Returns the transformation associated with the indicated texture stage, or identity matrix if nothing is associated with the indicated stage.
- has_stage(stage: TextureStage) bool
Returns true if there is a transform associated with the indicated stage, or false otherwise (in which case get_transform(stage) will return the identity transform).
- is_empty() bool
Returns true if no stages are defined in the
TexMatrixAttrib
, false if at least one is.
- static make() RenderAttrib
Constructs a
TexMatrixAttrib
that applies no stages at all.
- static make(mat: LMatrix4) RenderAttrib
Constructs a
TexMatrixAttrib
that applies the indicated matrix to the default texture stage. This interface is deprecated.Deprecated: Use the constructor that takes a
TextureStage
instead.
- static make(stage: TextureStage, transform: TransformState) RenderAttrib
Constructs a
TexMatrixAttrib
that applies the indicated transform to the named texture stage.
- static make_default() RenderAttrib
Returns a
RenderAttrib
that corresponds to whatever the standard default properties for render attributes of this type ought to be.
- remove_stage(stage: TextureStage) RenderAttrib
Returns a new
TexMatrixAttrib
just like this one, with the indicated stage removed.