Skip to main content

Class: MeshBasicMaterial2

Core-API.MeshBasicMaterial2

Hierarchy

  • MeshBasicMaterial<Event, "beforeCompile" | "materialUpdate" | "beforeRender" | "afterRender">

    MeshBasicMaterial2

Implements

Properties

TypeSlug

Static Readonly TypeSlug: "bmat"

Defined in

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


TYPE

Static Readonly TYPE: "MeshBasicMaterial2"

Defined in

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


materialExtensions

materialExtensions: MaterialExtension[]

Implementation of

IMaterial.materialExtensions

Defined in

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


typeSlug

Readonly typeSlug: "bmat"

Implementation of

IMaterial.typeSlug

Defined in

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


assetType

assetType: "material"

Implementation of

IMaterial.assetType

Defined in

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


materialObject

materialObject: MeshBasicMaterial2

Implementation of

IMaterial.materialObject

Defined in

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


isMeshBasicMaterial2

isMeshBasicMaterial2: boolean = true

Defined in

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


extraUniformsToUpload

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

Implementation of

IMaterial.extraUniformsToUpload

Defined in

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

Constructors

constructor

new MeshBasicMaterial2(parameters?)

Parameters

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

Overrides

MeshBasicMaterial<Event, 'beforeCompile'|'materialUpdate'|'beforeRender'|'afterRender'\>.constructor

Defined in

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

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:78


registerMaterialExtensions

registerMaterialExtensions(customMaterialExtensions): void

Parameters

NameType
customMaterialExtensionsMaterialExtension[]

Returns

void

Implementation of

IMaterial.registerMaterialExtensions

Defined in

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


unregisterMaterialExtensions

unregisterMaterialExtensions(customMaterialExtensions): void

Parameters

NameType
customMaterialExtensionsMaterialExtension[]

Returns

void

Implementation of

IMaterial.unregisterMaterialExtensions

Defined in

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


onBeforeCompile

onBeforeCompile(shader, renderer): void

Parameters

NameType
shaderShader
rendererWebGLRenderer

Returns

void

Overrides

MeshBasicMaterial.onBeforeCompile

Defined in

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


customProgramCacheKey

customProgramCacheKey(): string

Returns

string

Overrides

MeshBasicMaterial.customProgramCacheKey

Defined in

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


onBeforeRender

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

Parameters

NameType
rendererWebGLRenderer
sceneScene<Event, string>
cameraCamera<Event, string>
geometryBufferGeometry<NormalBufferAttributes, Event, string>
objectObject3D<Event, string>

Returns

void

Overrides

MeshBasicMaterial.onBeforeRender

Defined in

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


onAfterRender

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

Parameters

NameType
rendererWebGLRenderer
sceneScene<Event, string>
cameraCamera<Event, string>
geometryBufferGeometry<NormalBufferAttributes, Event, string>
objectObject3D<Event, string>

Returns

void

Overrides

MeshBasicMaterial.onAfterRender

Defined in

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


copyProps

copyProps(oldMaterial, allowUnknownType?): MeshBasicMaterial2

Parameters

NameTypeDefault value
oldMaterialMaterial<Event, string>undefined
allowUnknownTypebooleanfalse

Returns

MeshBasicMaterial2

Implementation of

IMaterial.copyProps

Defined in

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


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:327


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:351


clone

clone(): MeshBasicMaterial2

Returns

MeshBasicMaterial2

Implementation of

IMaterial.clone

Overrides

MeshBasicMaterial.clone

Defined in

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

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:94