Class: DVEBRClassicMaterial
Defaults/Foundation/Classic/DVETRClassicMaterial.DVEBRClassicMaterial
Hierarchy
-
URIMaterial<DVETRScene,DVETRClassicMaterialBaseData,ShaderMaterial>↳
DVEBRClassicMaterial
Constructors
constructor
• new DVEBRClassicMaterial(id, data): DVEBRClassicMaterial
Parameters
| Name | Type |
|---|---|
id | string |
data | DVETRClassicMaterialData |
Returns
Overrides
URIMaterial< DVETRScene, DVETRClassicMaterialBaseData, ShaderMaterial >.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
| Name | Type |
|---|---|
data | DVETRClassicMaterialData |
Returns
ShaderMaterial
Overrides
URIMaterial._create
Defined in
divinevoxel/three-renderer/src/Defaults/Foundation/Classic/DVETRClassicMaterial.ts:56
_setUnfirom
▸ _setUnfirom(uniform, value): void
Parameters
| Name | Type |
|---|---|
uniform | string |
value | any |
Returns
void
Defined in
divinevoxel/three-renderer/src/Defaults/Foundation/Classic/DVETRClassicMaterial.ts:172
createMaterial
▸ createMaterial(scene): false | ShaderMaterial
Parameters
| Name | Type |
|---|---|
scene | Scene |
Returns
false | ShaderMaterial
Defined in
divinevoxel/three-renderer/src/Defaults/Foundation/Classic/DVETRClassicMaterial.ts:50
setMatrix
▸ setMatrix<MatrixType>(uniform, matrix): void
Type parameters
| Name | Type |
|---|---|
MatrixType | Matrix |
Parameters
| Name | Type |
|---|---|
uniform | string |
matrix | MatrixType |
Returns
void
Overrides
URIMaterial.setMatrix
Defined in
divinevoxel/three-renderer/src/Defaults/Foundation/Classic/DVETRClassicMaterial.ts:210
setNumber
▸ setNumber(uniform, value): void
Parameters
| Name | Type |
|---|---|
uniform | string |
value | number |
Returns
void
Overrides
URIMaterial.setNumber
Defined in
divinevoxel/three-renderer/src/Defaults/Foundation/Classic/DVETRClassicMaterial.ts:189
setNumberArray
▸ setNumberArray(uniform, value): void
Parameters
| Name | Type |
|---|---|
uniform | string |
value | ArrayLike<number> |
Returns
void
Overrides
URIMaterial.setNumberArray
Defined in
divinevoxel/three-renderer/src/Defaults/Foundation/Classic/DVETRClassicMaterial.ts:192
setTexture
▸ setTexture(samplerId, sampler): void
Parameters
| Name | Type |
|---|---|
samplerId | string |
sampler | URITexture<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
| Name | Type |
|---|---|
samplerId | string |
sampler | URITexture<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
| Name | Type |
|---|---|
uniform | string |
x | number |
y | number |
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
| Name | Type |
|---|---|
uniform | string |
x | number |
y | number |
z | number |
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
| Name | Type |
|---|---|
uniform | string |
x | number |
y | number |
z | number |
w | number |
Returns
void
Overrides
URIMaterial.setVector4
Defined in
divinevoxel/three-renderer/src/Defaults/Foundation/Classic/DVETRClassicMaterial.ts:201