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


isShaderPass2

isShaderPass2: boolean = true

Defined in

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


enabled

enabled: boolean = true

Implementation of

IPass.enabled

Overrides

ShaderPass.enabled

Defined in

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

Constructors

constructor

new ShaderPass2(shader, ...textureID)

Parameters

NameType
shaderany
...textureIDstring[]

Overrides

ShaderPass.constructor

Defined in

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

Methods

dispose

dispose(): void

Returns

void

Implementation of

IPass.dispose

Defined in

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


setDirty

setDirty(): void

Returns

void

Defined in

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


updateShaderProperties

updateShaderProperties(updater?): void

Parameters

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

Returns

void

Implementation of

IPass.updateShaderProperties

Defined in

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


render

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

Parameters

NameType
rendererWebGLRenderer
writeBuffer?WebGLRenderTarget
readBuffer?WebGLRenderTarget
deltaTime?number
maskActive?boolean

Returns

void

Implementation of

IPass.render

Overrides

ShaderPass.render

Defined in

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