Skip to main content

Class: MeshStandardMaterial2

Asset-Management.MeshStandardMaterial2

Hierarchy

  • MeshPhysicalMaterial

    MeshStandardMaterial2

Implements

Properties

TypeSlug

Static Readonly TypeSlug: "pmat"

Defined in

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


TYPE

Static Readonly TYPE: "MeshStandardMaterial2"

Defined in

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


materialExtensions

materialExtensions: MaterialExtension[]

Implementation of

IMaterial.materialExtensions

Defined in

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


typeSlug

Readonly typeSlug: "pmat"

Implementation of

IMaterial.typeSlug

Defined in

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


isMeshStandardMaterial2

isMeshStandardMaterial2: boolean = true

Defined in

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


extraUniformsToUpload

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

Implementation of

IMaterial.extraUniformsToUpload

Defined in

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


assetType

assetType: "material"

Implementation of

IMaterial.assetType

Defined in

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


materialObject

materialObject: MeshStandardMaterial2

Implementation of

IMaterial.materialObject

Defined in

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

Constructors

constructor

new MeshStandardMaterial2(parameters?)

Parameters

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

Overrides

MeshPhysicalMaterial.constructor

Defined in

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

Methods

registerMaterialExtensions

registerMaterialExtensions(customMaterialExtensions): void

Parameters

NameType
customMaterialExtensionsMaterialExtension[]

Returns

void

Implementation of

IMaterial.registerMaterialExtensions

Defined in

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


unregisterMaterialExtensions

unregisterMaterialExtensions(customMaterialExtensions): void

Parameters

NameType
customMaterialExtensionsMaterialExtension[]

Returns

void

Implementation of

IMaterial.unregisterMaterialExtensions

Defined in

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


onBeforeCompile

onBeforeCompile(shader, renderer): void

Parameters

NameType
shaderShader
rendererWebGLRenderer

Returns

void

Overrides

MeshPhysicalMaterial.onBeforeCompile

Defined in

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


customProgramCacheKey

customProgramCacheKey(): string

Returns

string

Overrides

MeshPhysicalMaterial.customProgramCacheKey

Defined in

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


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/MeshStandardMaterial2.ts:705


copyProps

copyProps(oldMaterial, allowUnknownType?): MeshStandardMaterial2

Parameters

NameTypeDefault value
oldMaterialMaterialundefined
allowUnknownTypebooleanfalse

Returns

MeshStandardMaterial2

Implementation of

IMaterial.copyProps

Defined in

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


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


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


clone

clone(): MeshStandardMaterial2

Returns

MeshStandardMaterial2

Implementation of

IMaterial.clone

Overrides

MeshPhysicalMaterial.clone

Defined in

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

Accessors

uiConfig

get uiConfig(): UiObjectConfig<any>

Returns

UiObjectConfig<any>

Implementation of

IMaterial.uiConfig

Defined in

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