Skip to main content

Class: ShaderMaterialEncodingSupport

Extra-Helpers.ShaderMaterialEncodingSupport

Hierarchy

Properties

assetType

assetType: "material"

Inherited from

ShaderMaterial2.assetType

Defined in

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


materialObject

materialObject: ShaderMaterialEncodingSupport

Inherited from

ShaderMaterial2.materialObject

Defined in

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


materialExtensions

materialExtensions: MaterialExtension[] = []

Inherited from

ShaderMaterial2.materialExtensions

Defined in

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


isRawShaderMaterial

isRawShaderMaterial: boolean = false

Inherited from

ShaderMaterial2.isRawShaderMaterial

Defined in

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


extraUniformsToUpload

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

Inherited from

ShaderMaterial2.extraUniformsToUpload

Defined in

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


typeSlug

Readonly typeSlug: "shaderMat"

Overrides

ShaderMaterial2.typeSlug

Defined in

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


textures

textures: { encoding: TextureEncoding ; id: string }[] = []

Defined in

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

Methods

registerMaterialExtensions

registerMaterialExtensions(customMaterialExtensions): void

Parameters

NameType
customMaterialExtensionsMaterialExtension[]

Returns

void

Inherited from

ShaderMaterial2.registerMaterialExtensions

Defined in

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


unregisterMaterialExtensions

unregisterMaterialExtensions(customMaterialExtensions): void

Parameters

NameType
customMaterialExtensionsMaterialExtension[]

Returns

void

Inherited from

ShaderMaterial2.unregisterMaterialExtensions

Defined in

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


onAfterRender

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

Parameters

NameType
rendererWebGLRenderer
sceneScene
cameraCamera
geometryBufferGeometry
objectObject3D<Event>

Returns

void

Inherited from

ShaderMaterial2.onAfterRender

Defined in

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


setDirty

setDirty(options?): void

Parameters

NameType
options?AnyOptions

Returns

void

Inherited from

ShaderMaterial2.setDirty

Defined in

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


toJSON

toJSON(meta?): any

Parameters

NameType
meta?any

Returns

any

Inherited from

ShaderMaterial2.toJSON

Defined in

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


fromJSON

fromJSON(data, meta?): null | ShaderMaterialEncodingSupport

Parameters

NameType
dataany
meta?any

Returns

null | ShaderMaterialEncodingSupport

Inherited from

ShaderMaterial2.fromJSON

Defined in

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


copyProps

copyProps(oldMaterial): ShaderMaterialEncodingSupport

Parameters

NameType
oldMaterialany

Returns

ShaderMaterialEncodingSupport

Inherited from

ShaderMaterial2.copyProps

Defined in

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


setTextureIds

setTextureIds(ids): void

Parameters

NameType
idsstring[]

Returns

void

Defined in

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


onBeforeRender

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

Parameters

NameType
rendererWebGLRenderer
sceneScene
cameraCamera
geometryBufferGeometry
objectObject3D<Event>

Returns

void

Overrides

ShaderMaterial2.onBeforeRender

Defined in

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


onBeforeCompile

onBeforeCompile(s, renderer): void

Parameters

NameType
sShader
rendererWebGLRenderer

Returns

void

Overrides

ShaderMaterial2.onBeforeCompile

Defined in

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


customProgramCacheKey

customProgramCacheKey(): string

Returns

string

Overrides

ShaderMaterial2.customProgramCacheKey

Defined in

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

Constructors

constructor

new ShaderMaterialEncodingSupport(parameters, textureIds)

Parameters

NameType
parametersShaderMaterialParameters
textureIdsstring[]

Overrides

ShaderMaterial2.constructor

Defined in

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