Bokeh implementation

Any chance we could be seeing bokeh DoF implementation?

https://threejs.org/examples/webgl_postprocessing_dof2.html

I’m using this same Bokeh effect originally written by Martin Upitis in TouchDesigner and really like the fidelity of it. Would love to try and implement it myself, but its probably not the best thing to start out with when learning cables.

Best,
Mickey

Hi,

I guess https://cables.gl/op/Ops.Gl.TextureEffects.DepthTextureFocus is a good starting point for what you want to archive.

Cheers,
dino

I’ve tried a few examples but I couldn’t quite get them to keep from getting grainy above a certain extend. Also with bokeh you can decide what type of shape is used for the blurring, such as hexagons. Also this implementation has a few parameters which you’d often want in the context of a camera using bokeh. Its a good suggestion though, thank you!