BokehMaterial
Extends:
three~ShaderMaterial → BokehMaterial
A bokeh blur material.
This material should be applied twice in a row, with fill
mode enabled for
the second pass.
Enabling the foreground
option causes the shader to combine the near and
far CoC values around foreground objects.
Constructor Summary
Public Constructor | ||
public |
constructor(fill: Boolean, foreground: Boolean) Constructs a new bokeh material. |
Method Summary
Public Methods | ||
public |
setTexelSize(x: Number, y: Number) Sets the texel size. |