---
title: "DxMaterial"
description: "API documentation for DxMaterial"
url: https://developer.disguise.one/python-api/docs/dxmaterial/
---

# DxMaterial

Base class: _\_BlipValue_

Subclasses: _ShaderMaterial_

## Properties

#### **blendMode0** : _int_

#### **blendMode1** : _int_

#### **colour** : _[Colour](/python-api/docs/colour#colour)_

#### **texture0** : _[DxTexture](/python-api/docs/dxtexture#dxtexture)_

#### **texture1** : _[DxTexture](/python-api/docs/dxtexture#dxtexture)_

#### **zWriteEnable** : _bool_

## Variables

#### **add** : _Final\[int\]_ = 2

#### **addMtl** : _[DxMaterial](/python-api/docs/dxmaterial#dxmaterial)_

#### **alpha** : _Final\[int\]_ = 1

#### **alphaMtl** : _[DxMaterial](/python-api/docs/dxmaterial#dxmaterial)_

#### **anisotropic** : _Final\[int\]_ = 128

#### **lineStrip** : _Final\[int\]_ = 32

#### **linearSample** : _Final\[int\]_ = 0

#### **mipmap** : _Final\[int\]_ = 64

#### **multMtl** : _[DxMaterial](/python-api/docs/dxmaterial#dxmaterial)_

#### **multiply** : _Final\[int\]_ = 3

#### **multiplyAlpha** : _Final\[int\]_ = 5

#### **over** : _Final\[int\]_ = 0

#### **overMtl** : _[DxMaterial](/python-api/docs/dxmaterial#dxmaterial)_

#### **pointSample** : _Final\[int\]_ = 16

#### **textureBorder** : _Final\[int\]_ = 768

#### **textureBorderU** : _Final\[int\]_ = 256

#### **textureBorderV** : _Final\[int\]_ = 512

#### **textureClamp** : _Final\[int\]_ = 1024

#### **textureWrap** : _Final\[int\]_ = 0

#### **zCmpAlways** : _Final\[int\]_ = 2048

#### **zCmpLessEqual** : _Final\[int\]_ = 0

## Constructors

#### **\_\_init\_\_**(self)

#### **\_\_init\_\_**(self, tex0: _[DxTexture](/python-api/docs/dxtexture#dxtexture)_, blendMode0: _int_)

#### **\_\_init\_\_**(self, tex0: _[DxTexture](/python-api/docs/dxtexture#dxtexture)_, blendMode0: _int_, tex1: _[DxTexture](/python-api/docs/dxtexture#dxtexture)_, blendMode1: _int_)

## Methods

#### **blendMode**(self, mode: _int_, i: _int_)

#### **getTexAddressModeU**(self, iStage: _int_) -> _int_

#### **getTexAddressModeV**(self, iStage: _int_) -> _int_

#### **getZCmpMode**(self, zMode: _int_) -> _int_

#### **set**(self, tex0 = None, bm0 = 0, tex1 = None, bm1 = 0) -> _Any_

Set the material with up to two textures

**Parameters**:

-   tex0: The first texture
-   bm0: The blend mode for the first texture
-   tex1: The second texture
-   bm1: The blend mode for the second texture

#### **setBlendState**(self, name: _int_, blendMode: _int_, iBlendTargetMask: _int_)

#### **setMacro**(self, name: _int_, iValue: _int_)

#### **setWorldMatrix**(self, mat: _[Mat](/python-api/docs/mat#mat)_)

## Static Methods

#### **make**(tex0, blendMode0, tex1 = None, blendMode1 = 0) -> _Any_

## Special Methods

#### **\_\_new\_\_**(cls, \*args) -> _Any_

Create a new DxMaterial
