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.
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: https://playcanvas.com/project/887925/overview/test-brokeh
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 https://github.com/playcanvas/engine/tree/dev/scripts/posteffects
it uses this.needsDepthBuffer = true;
which calls _requestDepthMap on the post effect queue