Skip to main content

Class: MeshStandardMaterial2

Core-API.MeshStandardMaterial2

Hierarchy

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

    MeshStandardMaterial2

Implements

Properties

TypeSlug

Static Readonly TypeSlug: "pmat"

Defined in

webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:142


TYPE

Static Readonly TYPE: "MeshStandardMaterial2"

Defined in

webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:143


materialExtensions

materialExtensions: MaterialExtension[]

Implementation of

IMaterial.materialExtensions

Defined in

webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:141


typeSlug

Readonly typeSlug: "pmat"

Implementation of

IMaterial.typeSlug

Defined in

webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:144


assetType

assetType: "material"

Implementation of

IMaterial.assetType

Defined in

webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:145


materialObject

materialObject: MeshStandardMaterial2

Implementation of

IMaterial.materialObject

Defined in

webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:146


isMeshStandardMaterial2

isMeshStandardMaterial2: boolean = true

Defined in

webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:148


extraUniformsToUpload

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

Implementation of

IMaterial.extraUniformsToUpload

Defined in

webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:682

Constructors

constructor

new MeshStandardMaterial2(parameters?)

Parameters

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

Overrides

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

Defined in

webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:149

Methods

setDirty

setDirty(options?): void

Parameters

NameType
options?AnyOptions

Returns

void

Implementation of

IMaterial.setDirty

Defined in

webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:163


registerMaterialExtensions

registerMaterialExtensions(customMaterialExtensions): void

Parameters

NameType
customMaterialExtensionsMaterialExtension[]

Returns

void

Implementation of

IMaterial.registerMaterialExtensions

Defined in

webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:169


unregisterMaterialExtensions

unregisterMaterialExtensions(customMaterialExtensions): void

Parameters

NameType
customMaterialExtensionsMaterialExtension[]

Returns

void

Implementation of

IMaterial.unregisterMaterialExtensions

Defined in

webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:172


onBeforeCompile

onBeforeCompile(shader, renderer): void

Parameters

NameType
shaderShader
rendererWebGLRenderer

Returns

void

Overrides

MeshPhysicalMaterial.onBeforeCompile

Defined in

webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:655


customProgramCacheKey

customProgramCacheKey(): string

Returns

string

Overrides

MeshPhysicalMaterial.customProgramCacheKey

Defined in

webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:678


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

MeshPhysicalMaterial.onBeforeRender

Defined in

webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:684


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

MeshPhysicalMaterial.onAfterRender

Defined in

webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:714


copyProps

copyProps(oldMaterial, allowUnknownType?, clearCurrentUserData?): MeshStandardMaterial2

Parameters

NameTypeDefault value
oldMaterialMaterial<Event, string>undefined
allowUnknownTypebooleanfalse
clearCurrentUserDatabooleantrue

Returns

MeshStandardMaterial2

Implementation of

IMaterial.copyProps

Defined in

webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:725


toJSON

toJSON(meta?): any

Parameters

NameType
meta?any

Returns

any

Implementation of

IMaterial.toJSON

Overrides

MeshPhysicalMaterial.toJSON

Defined in

webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:758


fromJSON

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

Parameters

NameTypeDefault value
dataanyundefined
meta?anyundefined
allowUnknownTypebooleanfalse

Returns

null | MeshStandardMaterial2

Implementation of

IMaterial.fromJSON

Defined in

webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:782


clone

clone(): MeshStandardMaterial2

Returns

MeshStandardMaterial2

Implementation of

IMaterial.clone

Overrides

MeshPhysicalMaterial.clone

Defined in

webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:790

Accessors

uiConfig

get uiConfig(): UiObjectConfig<any, string>

Returns

UiObjectConfig<any, string>

Implementation of

IMaterial.uiConfig

Defined in

webgi/src/extras/asset_manager/threejs/MeshStandardMaterial2.ts:179