Skip to main content

Class: DVEBRClassicMaterial

Defaults/Foundation/Classic/DVETRClassicMaterial.DVEBRClassicMaterial

Hierarchy

  • URIMaterial<DVETRScene, DVETRClassicMaterialBaseData, ShaderMaterial>

    DVEBRClassicMaterial

Constructors

constructor

new DVEBRClassicMaterial(id, data): DVEBRClassicMaterial

Parameters

NameType
idstring
dataDVETRClassicMaterialData

Returns

DVEBRClassicMaterial

Overrides

URIMaterial&lt; DVETRScene, DVETRClassicMaterialBaseData, ShaderMaterial &gt;.constructor

Defined in

divinevoxel/three-renderer/src/Defaults/Foundation/Classic/DVETRClassicMaterial.ts:46

Properties

_material

_material: ShaderMaterial

Inherited from

URIMaterial._material

Defined in

node_modules/@divinestar/uri/Materials/URIMaterial.d.ts:17


afterCreate

afterCreate: (material: ShaderMaterial) => void[] = []

Defined in

divinevoxel/three-renderer/src/Defaults/Foundation/Classic/DVETRClassicMaterial.ts:45


data

data: DVETRClassicMaterialData

Defined in

divinevoxel/three-renderer/src/Defaults/Foundation/Classic/DVETRClassicMaterial.ts:46


id

id: string

Inherited from

URIMaterial.id

Defined in

divinevoxel/three-renderer/src/Defaults/Foundation/Classic/DVETRClassicMaterial.ts:46


scene

scene: Scene

Defined in

divinevoxel/three-renderer/src/Defaults/Foundation/Classic/DVETRClassicMaterial.ts:41


shader

shader: URIShader

Defined in

divinevoxel/three-renderer/src/Defaults/Foundation/Classic/DVETRClassicMaterial.ts:43

Methods

_create

_create(data): ShaderMaterial

Parameters

NameType
dataDVETRClassicMaterialData

Returns

ShaderMaterial

Overrides

URIMaterial._create

Defined in

divinevoxel/three-renderer/src/Defaults/Foundation/Classic/DVETRClassicMaterial.ts:56


_setUnfirom

_setUnfirom(uniform, value): void

Parameters

NameType
uniformstring
valueany

Returns

void

Defined in

divinevoxel/three-renderer/src/Defaults/Foundation/Classic/DVETRClassicMaterial.ts:172


createMaterial

createMaterial(scene): false | ShaderMaterial

Parameters

NameType
sceneScene

Returns

false | ShaderMaterial

Defined in

divinevoxel/three-renderer/src/Defaults/Foundation/Classic/DVETRClassicMaterial.ts:50


setMatrix

setMatrix<MatrixType>(uniform, matrix): void

Type parameters

NameType
MatrixTypeMatrix

Parameters

NameType
uniformstring
matrixMatrixType

Returns

void

Overrides

URIMaterial.setMatrix

Defined in

divinevoxel/three-renderer/src/Defaults/Foundation/Classic/DVETRClassicMaterial.ts:210


setNumber

setNumber(uniform, value): void

Parameters

NameType
uniformstring
valuenumber

Returns

void

Overrides

URIMaterial.setNumber

Defined in

divinevoxel/three-renderer/src/Defaults/Foundation/Classic/DVETRClassicMaterial.ts:189


setNumberArray

setNumberArray(uniform, value): void

Parameters

NameType
uniformstring
valueArrayLike<number>

Returns

void

Overrides

URIMaterial.setNumberArray

Defined in

divinevoxel/three-renderer/src/Defaults/Foundation/Classic/DVETRClassicMaterial.ts:192


setTexture

setTexture(samplerId, sampler): void

Parameters

NameType
samplerIdstring
samplerURITexture<URIScene<any>, any>

Returns

void

Overrides

URIMaterial.setTexture

Defined in

divinevoxel/three-renderer/src/Defaults/Foundation/Classic/DVETRClassicMaterial.ts:186


setTextureArray

setTextureArray(samplerId, sampler): void

Parameters

NameType
samplerIdstring
samplerURITexture<URIScene<any>, any>[]

Returns

void

Overrides

URIMaterial.setTextureArray

Defined in

divinevoxel/three-renderer/src/Defaults/Foundation/Classic/DVETRClassicMaterial.ts:177


setVector2

setVector2(uniform, x, y): void

Parameters

NameType
uniformstring
xnumber
ynumber

Returns

void

Overrides

URIMaterial.setVector2

Defined in

divinevoxel/three-renderer/src/Defaults/Foundation/Classic/DVETRClassicMaterial.ts:195


setVector3

setVector3(uniform, x, y, z): void

Parameters

NameType
uniformstring
xnumber
ynumber
znumber

Returns

void

Overrides

URIMaterial.setVector3

Defined in

divinevoxel/three-renderer/src/Defaults/Foundation/Classic/DVETRClassicMaterial.ts:198


setVector4

setVector4(uniform, x, y, z, w): void

Parameters

NameType
uniformstring
xnumber
ynumber
znumber
wnumber

Returns

void

Overrides

URIMaterial.setVector4

Defined in

divinevoxel/three-renderer/src/Defaults/Foundation/Classic/DVETRClassicMaterial.ts:201