panda3d.core.TexMatrixAttrib

class TexMatrixAttrib

Bases: RenderAttrib

Applies a transform matrix to UV’s before they are rendered.

Inheritance diagram

Inheritance diagram of TexMatrixAttrib

static make() → RenderAttrib

Constructs a TexMatrixAttrib that applies no stages at all.

Return type

RenderAttrib

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.

Return type

RenderAttrib

static make(stage: TextureStage, transform: TransformState) → RenderAttrib

Constructs a TexMatrixAttrib that applies the indicated transform to the named texture stage.

Return type

RenderAttrib

static makeDefault() → RenderAttrib

Returns a RenderAttrib that corresponds to whatever the standard default properties for render attributes of this type ought to be.

Return type

RenderAttrib

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.

Return type

RenderAttrib

removeStage(stage: TextureStage) → RenderAttrib

Returns a new TexMatrixAttrib just like this one, with the indicated stage removed.

Return type

RenderAttrib

isEmpty() → bool

Returns true if no stages are defined in the TexMatrixAttrib, false if at least one is.

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).

getNumStages() → int

Returns the number of stages that are represented by this attrib.

getStage(n: int) → TextureStage

Returns the nth stage that is represented by this attrib. The TextureStages are in no particular order.

Return type

TextureStage

getMat() → LMatrix4

Returns the transformation matrix associated with the default texture stage.

Return type

LMatrix4

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.

Return type

LMatrix4

getTransform(stage: TextureStage) → TransformState

Returns the transformation associated with the indicated texture stage, or identity matrix if nothing is associated with the indicated stage.

Return type

TransformState

getOverride(stage: TextureStage) → int

Returns the override value associated with the indicated stage.

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.

static getClassSlot() → int
static getClassType() → TypeHandle
Return type

TypeHandle

getStages() → list
property class_slot
Return type

int