Skip to main content

Class: MeshStandardMaterial2

Core-API.MeshStandardMaterial2

Hierarchy

  • MeshPhysicalMaterial

    MeshStandardMaterial2

Implements

Properties

TypeSlug

Static Readonly TypeSlug: "pmat"

Defined in

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


TYPE

Static Readonly TYPE: "MeshStandardMaterial2"

Defined in

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


materialExtensions

materialExtensions: MaterialExtension[]

Implementation of

IMaterial.materialExtensions

Defined in

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


typeSlug

Readonly typeSlug: "pmat"

Implementation of

IMaterial.typeSlug

Defined in

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


assetType

assetType: "material"

Implementation of

IMaterial.assetType

Defined in

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


materialObject

materialObject: MeshStandardMaterial2

Implementation of

IMaterial.materialObject

Defined in

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


isMeshStandardMaterial2

isMeshStandardMaterial2: boolean = true

Defined in

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


extraUniformsToUpload

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

Implementation of

IMaterial.extraUniformsToUpload

Defined in

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

Constructors

constructor

new MeshStandardMaterial2(parameters?)

Parameters

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

Overrides

MeshPhysicalMaterial.constructor

Defined in

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

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


registerMaterialExtensions

registerMaterialExtensions(customMaterialExtensions): void

Parameters

NameType
customMaterialExtensionsMaterialExtension[]

Returns

void

Implementation of

IMaterial.registerMaterialExtensions

Defined in

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


unregisterMaterialExtensions

unregisterMaterialExtensions(customMaterialExtensions): void

Parameters

NameType
customMaterialExtensionsMaterialExtension[]

Returns

void

Implementation of

IMaterial.unregisterMaterialExtensions

Defined in

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


onBeforeCompile

onBeforeCompile(shader, renderer): void

Parameters

NameType
shaderShader
rendererWebGLRenderer

Returns

void

Overrides

MeshPhysicalMaterial.onBeforeCompile

Defined in

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


customProgramCacheKey

customProgramCacheKey(): string

Returns

string

Overrides

MeshPhysicalMaterial.customProgramCacheKey

Defined in

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


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


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


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


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


clone

clone(): MeshStandardMaterial2

Returns

MeshStandardMaterial2

Implementation of

IMaterial.clone

Overrides

MeshPhysicalMaterial.clone

Defined in

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

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