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


TYPE

Static Readonly TYPE: "MeshStandardMaterial2"

Defined in

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


materialExtensions

materialExtensions: MaterialExtension[]

Implementation of

IMaterial.materialExtensions

Defined in

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


typeSlug

Readonly typeSlug: "pmat"

Implementation of

IMaterial.typeSlug

Defined in

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


assetType

assetType: "material"

Implementation of

IMaterial.assetType

Defined in

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


materialObject

materialObject: MeshStandardMaterial2

Implementation of

IMaterial.materialObject

Defined in

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


isMeshStandardMaterial2

isMeshStandardMaterial2: boolean = true

Defined in

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


extraUniformsToUpload

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

Implementation of

IMaterial.extraUniformsToUpload

Defined in

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

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

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


registerMaterialExtensions

registerMaterialExtensions(customMaterialExtensions): void

Parameters

NameType
customMaterialExtensionsMaterialExtension[]

Returns

void

Implementation of

IMaterial.registerMaterialExtensions

Defined in

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


unregisterMaterialExtensions

unregisterMaterialExtensions(customMaterialExtensions): void

Parameters

NameType
customMaterialExtensionsMaterialExtension[]

Returns

void

Implementation of

IMaterial.unregisterMaterialExtensions

Defined in

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


onBeforeCompile

onBeforeCompile(shader, renderer): void

Parameters

NameType
shaderShader
rendererWebGLRenderer

Returns

void

Overrides

MeshPhysicalMaterial.onBeforeCompile

Defined in

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


customProgramCacheKey

customProgramCacheKey(): string

Returns

string

Overrides

MeshPhysicalMaterial.customProgramCacheKey

Defined in

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


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


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


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


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


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


clone

clone(): MeshStandardMaterial2

Returns

MeshStandardMaterial2

Implementation of

IMaterial.clone

Overrides

MeshPhysicalMaterial.clone

Defined in

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

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