Is requestDepthmap deprercated?

I was trying to apply Bokeh post effect and I couldn’t get camera depth map from requestDepthMap().

It says requestDepthMap is not a function.

Just tried the effect now and works fine in a test project:

Have you put the script on an entity with a camera?

yes I put the script onto the camera…and

requestDepthMap is not called in your example.

The brokeh script was taking from latest on the engine repo

it uses this.needsDepthBuffer = true; which calls _requestDepthMap on the post effect queue

1 Like