Skip to main content

Class: ShaderMaterial2

Extra-Helpers.ShaderMaterial2

Hierarchy

Implements

Properties

assetType

assetType: "material"

Implementation of

IMaterial.assetType

Inherited from

AShaderMaterial2.assetType

Defined in

webgi/src/passes/threejs/ShaderPass2.ts:26


materialObject

materialObject: ShaderMaterial2

Implementation of

IMaterial.materialObject

Inherited from

AShaderMaterial2.materialObject

Defined in

webgi/src/passes/threejs/ShaderPass2.ts:27


materialExtensions

materialExtensions: MaterialExtension[] = []

Implementation of

IMaterial.materialExtensions

Inherited from

AShaderMaterial2.materialExtensions

Defined in

webgi/src/passes/threejs/ShaderPass2.ts:28


isRawShaderMaterial

isRawShaderMaterial: boolean = false

Inherited from

AShaderMaterial2.isRawShaderMaterial

Defined in

webgi/src/passes/threejs/ShaderPass2.ts:29


extraUniformsToUpload

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

Implementation of

IMaterial.extraUniformsToUpload

Inherited from

AShaderMaterial2.extraUniformsToUpload

Defined in

webgi/src/passes/threejs/ShaderPass2.ts:62


typeSlug

Readonly typeSlug: string = 'shaderMat'

Implementation of

IMaterial.typeSlug

Overrides

AShaderMaterial2.typeSlug

Defined in

webgi/src/passes/threejs/ShaderPass2.ts:90

Constructors

constructor

new ShaderMaterial2(parameters?, isRawShaderMaterial?)

Parameters

NameTypeDefault value
parameters?anyundefined
isRawShaderMaterialbooleanfalse

Inherited from

AShaderMaterial2.constructor

Defined in

webgi/src/passes/threejs/ShaderPass2.ts:31

Methods

registerMaterialExtensions

registerMaterialExtensions(customMaterialExtensions): void

Parameters

NameType
customMaterialExtensionsMaterialExtension[]

Returns

void

Implementation of

IMaterial.registerMaterialExtensions

Inherited from

AShaderMaterial2.registerMaterialExtensions

Defined in

webgi/src/passes/threejs/ShaderPass2.ts:40


unregisterMaterialExtensions

unregisterMaterialExtensions(customMaterialExtensions): void

Parameters

NameType
customMaterialExtensionsMaterialExtension[]

Returns

void

Implementation of

IMaterial.unregisterMaterialExtensions

Inherited from

AShaderMaterial2.unregisterMaterialExtensions

Defined in

webgi/src/passes/threejs/ShaderPass2.ts:44


onBeforeCompile

onBeforeCompile(shader, renderer): void

Parameters

NameType
shaderShader
rendererWebGLRenderer

Returns

void

Inherited from

AShaderMaterial2.onBeforeCompile

Defined in

webgi/src/passes/threejs/ShaderPass2.ts:48


customProgramCacheKey

customProgramCacheKey(): string

Returns

string

Inherited from

AShaderMaterial2.customProgramCacheKey

Defined in

webgi/src/passes/threejs/ShaderPass2.ts:58


onBeforeRender

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

Parameters

NameType
rendererWebGLRenderer
sceneScene
cameraCamera
geometryBufferGeometry
objectObject3D<Event>

Returns

void

Inherited from

AShaderMaterial2.onBeforeRender

Defined in

webgi/src/passes/threejs/ShaderPass2.ts:64


onAfterRender

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

Parameters

NameType
rendererWebGLRenderer
sceneScene
cameraCamera
geometryBufferGeometry
objectObject3D<Event>

Returns

void

Inherited from

AShaderMaterial2.onAfterRender

Defined in

webgi/src/passes/threejs/ShaderPass2.ts:71


setDirty

setDirty(options?): void

Parameters

NameType
options?AnyOptions

Returns

void

Implementation of

IMaterial.setDirty

Inherited from

AShaderMaterial2.setDirty

Defined in

webgi/src/passes/threejs/ShaderPass2.ts:82


toJSON

toJSON(meta?): any

Parameters

NameType
meta?any

Returns

any

Implementation of

IMaterial.toJSON

Overrides

AShaderMaterial2.toJSON

Defined in

webgi/src/passes/threejs/ShaderPass2.ts:92


fromJSON

fromJSON(data, meta?): null | ShaderMaterial2

Parameters

NameType
dataany
meta?any

Returns

null | ShaderMaterial2

Implementation of

IMaterial.fromJSON

Overrides

AShaderMaterial2.fromJSON

Defined in

webgi/src/passes/threejs/ShaderPass2.ts:95


copyProps

copyProps(oldMaterial): ShaderMaterial2

Parameters

NameType
oldMaterialany

Returns

ShaderMaterial2

Implementation of

IMaterial.copyProps

Overrides

AShaderMaterial2.copyProps

Defined in

webgi/src/passes/threejs/ShaderPass2.ts:98