TexMatrixAttrib
from panda3d.core import TexMatrixAttrib
- class TexMatrixAttrib
Bases:
Bases:
RenderAttrib
Applies a transform matrix to UV’s before they are rendered.
Inheritance diagram
- addStage(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 getClassType() TypeHandle
- getGeomRendering(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.
- getMat(stage: TextureStage) LMatrix4
Returns the transformation matrix associated with the indicated texture stage, or identity matrix if nothing is associated with the indicated stage.
- getOverride(stage: TextureStage) int
Returns the override value associated with the indicated stage.
- getStage(n: int) TextureStage
Returns the nth stage that is represented by this attrib. The
TextureStages
are in no particular order.
- getTransform(stage: TextureStage) TransformState
Returns the transformation associated with the indicated texture stage, or identity matrix if nothing is associated with the indicated stage.
- hasStage(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).
- isEmpty() 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 makeDefault() RenderAttrib
Returns a
RenderAttrib
that corresponds to whatever the standard default properties for render attributes of this type ought to be.
- removeStage(stage: TextureStage) RenderAttrib
Returns a new
TexMatrixAttrib
just like this one, with the indicated stage removed.