Skip to main content

Class: ShaderPass2

Extra-Helpers.ShaderPass2

Hierarchy

Implements

Properties

DEFAULT_TEX_ID

Static Readonly DEFAULT_TEX_ID: "tDiffuse"

Defined in

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


onDirty

onDirty: () => void[] = []

Implementation of

IPass.onDirty

Defined in

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


material

material: ShaderMaterial2

Overrides

ShaderPass.material

Defined in

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


isShaderPass2

isShaderPass2: boolean = true

Defined in

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


enabled

enabled: boolean = true

Implementation of

IPass.enabled

Overrides

ShaderPass.enabled

Defined in

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

Constructors

constructor

new ShaderPass2(shader, ...textureID)

Parameters

NameType
shaderany
...textureIDstring[]

Overrides

ShaderPass.constructor

Defined in

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

Methods

dispose

dispose(): void

Returns

void

Implementation of

IPass.dispose

Overrides

ShaderPass.dispose

Defined in

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


setDirty

setDirty(): void

Returns

void

Defined in

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


updateShaderProperties

updateShaderProperties(updater?): void

Parameters

NameType
updater?IShaderPropertiesUpdater | (undefined | IShaderPropertiesUpdater)[]

Returns

void

Implementation of

IPass.updateShaderProperties

Defined in

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


render

render(renderer, writeBuffer, readBuffer?, deltaTime?, maskActive?): void

Parameters

NameType
rendererWebGLRenderer
writeBuffernull | WebGLRenderTarget | WebGLMultipleRenderTargets
readBuffer?WebGLRenderTarget | WebGLMultipleRenderTargets
deltaTime?number
maskActive?boolean

Returns

void

Implementation of

IPass.render

Overrides

ShaderPass.render

Defined in

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