Skip to main content

Class: DepthOfFieldPass

Extra-Helpers.DepthOfFieldPass

Hierarchy

Properties

DEFAULT_TEX_ID

Static Readonly DEFAULT_TEX_ID: "tDiffuse"

Inherited from

ShaderPass2.DEFAULT_TEX_ID

Defined in

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


computeCocMaterial

computeCocMaterial: ShaderMaterialEncodingSupport

Defined in

webgi/src/passes/threejs/DepthOfFieldPass.ts:66


expandCocMaterial

expandCocMaterial: ShaderMaterialEncodingSupport

Defined in

webgi/src/passes/threejs/DepthOfFieldPass.ts:67


dofBlurMaterial

dofBlurMaterial: ShaderMaterialEncodingSupport = dofBlurMaterialPoisson

Defined in

webgi/src/passes/threejs/DepthOfFieldPass.ts:68


nearFarBlurScale

nearFarBlurScale: Vector2

Defined in

webgi/src/passes/threejs/DepthOfFieldPass.ts:72


focalDepthRange

focalDepthRange: Vector2

Defined in

webgi/src/passes/threejs/DepthOfFieldPass.ts:74


crossCenter

crossCenter: Vector2

Defined in

webgi/src/passes/threejs/DepthOfFieldPass.ts:76


crossRadius

crossRadius: number = 0.04

Defined in

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


crossAlpha

crossAlpha: number = 1

Defined in

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


crossColor

crossColor: Color

Defined in

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


uiConfig

uiConfig: UiObjectConfig<any, string>

Defined in

webgi/src/passes/threejs/DepthOfFieldPass.ts:178


onDirty

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

Inherited from

ShaderPass2.onDirty

Defined in

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


isShaderPass2

isShaderPass2: boolean = true

Inherited from

ShaderPass2.isShaderPass2

Defined in

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


enabled

enabled: boolean = true

Inherited from

ShaderPass2.enabled

Defined in

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

Constructors

constructor

new DepthOfFieldPass()

Overrides

ShaderPass2.constructor

Defined in

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

Methods

render

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

Parameters

NameType
rendererWebGLRenderer
writeBufferWebGLRenderTarget
readBufferWebGLRenderTarget
deltaTimenumber
maskActiveboolean

Returns

void

Overrides

ShaderPass2.render

Defined in

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


dispose

dispose(): void

Returns

void

Inherited from

ShaderPass2.dispose

Defined in

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


setDirty

setDirty(): void

Returns

void

Inherited from

ShaderPass2.setDirty

Defined in

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


updateShaderProperties

updateShaderProperties(updater?): void

Parameters

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

Returns

void

Inherited from

ShaderPass2.updateShaderProperties

Defined in

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