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


computeCocMaterial

computeCocMaterial: ShaderMaterialEncodingSupport


expandCocMaterial

expandCocMaterial: ShaderMaterialEncodingSupport


dofBlurMaterial

dofBlurMaterial: ShaderMaterialEncodingSupport = dofBlurMaterialPoisson


nearFarBlurScale

nearFarBlurScale: Vector2


focalDepthRange

focalDepthRange: Vector2


crossCenter

crossCenter: Vector2


crossRadius

crossRadius: number = 0.04


crossAlpha

crossAlpha: number = 1


crossColor

crossColor: Color


uiConfig

uiConfig: UiObjectConfig<any, string>


onDirty

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

Inherited from

ShaderPass2.onDirty


material

material: ShaderMaterial2

Inherited from

ShaderPass2.material


isShaderPass2

isShaderPass2: boolean = true

Inherited from

ShaderPass2.isShaderPass2


enabled

enabled: boolean = true

Inherited from

ShaderPass2.enabled

Constructors

constructor

new DepthOfFieldPass()

Overrides

ShaderPass2.constructor

Methods

render

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

Parameters

NameType
rendererWebGLRenderer
writeBufferWebGLRenderTarget<Texture<TextureEventMap>>
readBufferWebGLRenderTarget<Texture<TextureEventMap>>
deltaTimenumber
maskActiveboolean

Returns

void

Overrides

ShaderPass2.render


dispose

dispose(): void

Returns

void

Inherited from

ShaderPass2.dispose


setDirty

setDirty(): void

Returns

void

Inherited from

ShaderPass2.setDirty


updateShaderProperties

updateShaderProperties(updater?): void

Parameters

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

Returns

void

Inherited from

ShaderPass2.updateShaderProperties