Skip to main content

Class: AShaderMaterial2

Extra-Helpers.AShaderMaterial2

Hierarchy

Implements

Properties

typeSlug

Readonly typeSlug: string = 'shaderMat'

Implementation of

IMaterial.typeSlug

Defined in

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


assetType

assetType: "material"

Implementation of

IMaterial.assetType

Defined in

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


materialObject

materialObject: AShaderMaterial2

Implementation of

IMaterial.materialObject

Defined in

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


materialExtensions

materialExtensions: MaterialExtension[] = []

Implementation of

IMaterial.materialExtensions

Defined in

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


isRawShaderMaterial

isRawShaderMaterial: boolean = false

Defined in

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


extraUniformsToUpload

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

Implementation of

IMaterial.extraUniformsToUpload

Defined in

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

Constructors

constructor

new AShaderMaterial2(parameters?, isRawShaderMaterial?)

Parameters

NameTypeDefault value
parameters?anyundefined
isRawShaderMaterialbooleanfalse

Overrides

ShaderMaterial.constructor

Defined in

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

Methods

registerMaterialExtensions

registerMaterialExtensions(customMaterialExtensions): void

Parameters

NameType
customMaterialExtensionsMaterialExtension[]

Returns

void

Implementation of

IMaterial.registerMaterialExtensions

Defined in

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


unregisterMaterialExtensions

unregisterMaterialExtensions(customMaterialExtensions): void

Parameters

NameType
customMaterialExtensionsMaterialExtension[]

Returns

void

Implementation of

IMaterial.unregisterMaterialExtensions

Defined in

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


onBeforeCompile

onBeforeCompile(shader, renderer): void

Parameters

NameType
shaderShader
rendererWebGLRenderer

Returns

void

Overrides

ShaderMaterial.onBeforeCompile

Defined in

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


customProgramCacheKey

customProgramCacheKey(): string

Returns

string

Overrides

ShaderMaterial.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

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

Defined in

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


toJSON

Abstract toJSON(meta?): any

Parameters

NameType
meta?any

Returns

any

Implementation of

IMaterial.toJSON

Overrides

ShaderMaterial.toJSON

Defined in

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


fromJSON

Abstract fromJSON(data, meta?): null | AShaderMaterial2

Parameters

NameType
dataany
meta?any

Returns

null | AShaderMaterial2

Implementation of

IMaterial.fromJSON

Defined in

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


copyProps

Abstract copyProps(oldMaterial): AShaderMaterial2

Parameters

NameType
oldMaterialany

Returns

AShaderMaterial2

Implementation of

IMaterial.copyProps

Defined in

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


setDirty

setDirty(options?): void

Parameters

NameType
options?AnyOptions

Returns

void

Implementation of

IMaterial.setDirty

Defined in

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