Skip to main content

Class: MeshBasicMaterial2

Core-API.MeshBasicMaterial2

Hierarchy

  • MeshBasicMaterial

    MeshBasicMaterial2

Implements

Properties

TypeSlug

Static Readonly TypeSlug: "bmat"

Defined in

webgi/src/extras/asset_manager/threejs/MeshBasicMaterial2.ts:53


TYPE

Static Readonly TYPE: "MeshBasicMaterial2"

Defined in

webgi/src/extras/asset_manager/threejs/MeshBasicMaterial2.ts:54


materialExtensions

materialExtensions: MaterialExtension[]

Implementation of

IMaterial.materialExtensions

Defined in

webgi/src/extras/asset_manager/threejs/MeshBasicMaterial2.ts:52


typeSlug

Readonly typeSlug: "bmat"

Implementation of

IMaterial.typeSlug

Defined in

webgi/src/extras/asset_manager/threejs/MeshBasicMaterial2.ts:55


assetType

assetType: "material"

Implementation of

IMaterial.assetType

Defined in

webgi/src/extras/asset_manager/threejs/MeshBasicMaterial2.ts:56


materialObject

materialObject: MeshBasicMaterial2

Implementation of

IMaterial.materialObject

Defined in

webgi/src/extras/asset_manager/threejs/MeshBasicMaterial2.ts:57


isMeshBasicMaterial2

isMeshBasicMaterial2: boolean = true

Defined in

webgi/src/extras/asset_manager/threejs/MeshBasicMaterial2.ts:59


extraUniformsToUpload

extraUniformsToUpload: Record<string, IUniform<any>> = {}

Implementation of

IMaterial.extraUniformsToUpload

Defined in

webgi/src/extras/asset_manager/threejs/MeshBasicMaterial2.ts:276

Constructors

constructor

new MeshBasicMaterial2(parameters?)

Parameters

NameType
parameters?MeshPhysicalMaterialParameters & { customMaterialExtensions?: MaterialExtension[] }

Overrides

MeshBasicMaterial.constructor

Defined in

webgi/src/extras/asset_manager/threejs/MeshBasicMaterial2.ts:61

Methods

setDirty

setDirty(options?): void

Parameters

NameType
options?AnyOptions

Returns

void

Implementation of

IMaterial.setDirty

Defined in

webgi/src/extras/asset_manager/threejs/MeshBasicMaterial2.ts:73


registerMaterialExtensions

registerMaterialExtensions(customMaterialExtensions): void

Parameters

NameType
customMaterialExtensionsMaterialExtension[]

Returns

void

Implementation of

IMaterial.registerMaterialExtensions

Defined in

webgi/src/extras/asset_manager/threejs/MeshBasicMaterial2.ts:79


unregisterMaterialExtensions

unregisterMaterialExtensions(customMaterialExtensions): void

Parameters

NameType
customMaterialExtensionsMaterialExtension[]

Returns

void

Implementation of

IMaterial.unregisterMaterialExtensions

Defined in

webgi/src/extras/asset_manager/threejs/MeshBasicMaterial2.ts:82


onBeforeCompile

onBeforeCompile(shader, renderer): void

Parameters

NameType
shaderShader
rendererWebGLRenderer

Returns

void

Overrides

MeshBasicMaterial.onBeforeCompile

Defined in

webgi/src/extras/asset_manager/threejs/MeshBasicMaterial2.ts:246


customProgramCacheKey

customProgramCacheKey(): string

Returns

string

Overrides

MeshBasicMaterial.customProgramCacheKey

Defined in

webgi/src/extras/asset_manager/threejs/MeshBasicMaterial2.ts:272


onBeforeRender

onBeforeRender(renderer, scene, camera, geometry, object): void

Parameters

NameType
rendererWebGLRenderer
sceneScene
cameraCamera
geometryBufferGeometry
objectObject3D<Event>

Returns

void

Defined in

webgi/src/extras/asset_manager/threejs/MeshBasicMaterial2.ts:278


copyProps

copyProps(oldMaterial, allowUnknownType?): MeshBasicMaterial2

Parameters

NameTypeDefault value
oldMaterialMaterialundefined
allowUnknownTypebooleanfalse

Returns

MeshBasicMaterial2

Implementation of

IMaterial.copyProps

Defined in

webgi/src/extras/asset_manager/threejs/MeshBasicMaterial2.ts:292


toJSON

toJSON(meta?): any

Parameters

NameType
meta?any

Returns

any

Implementation of

IMaterial.toJSON

Overrides

MeshBasicMaterial.toJSON

Defined in

webgi/src/extras/asset_manager/threejs/MeshBasicMaterial2.ts:312


fromJSON

fromJSON(data, meta?, allowUnknownType?): null | MeshBasicMaterial2

Parameters

NameTypeDefault value
dataanyundefined
meta?anyundefined
allowUnknownTypebooleanfalse

Returns

null | MeshBasicMaterial2

Implementation of

IMaterial.fromJSON

Defined in

webgi/src/extras/asset_manager/threejs/MeshBasicMaterial2.ts:336


clone

clone(): MeshBasicMaterial2

Returns

MeshBasicMaterial2

Implementation of

IMaterial.clone

Overrides

MeshBasicMaterial.clone

Defined in

webgi/src/extras/asset_manager/threejs/MeshBasicMaterial2.ts:342

Accessors

uiConfig

get uiConfig(): UiObjectConfig<any, string>

Returns

UiObjectConfig<any, string>

Implementation of

IMaterial.uiConfig

Defined in

webgi/src/extras/asset_manager/threejs/MeshBasicMaterial2.ts:89