jerome Posted February 8, 2015 Share Posted February 8, 2015 Hello, Did anyone here already coded some depth of field postprocess ? I mean the same effect as with picture cameras : things/meshes before or beyond the depth of field set look blured, things/meshes within the depth of field range look sharp, at last normal . I found this article here : http://artmartinsh.blogspot.fr/2010/02/glsl-lens-blur-filter-with-bokeh.htmlwith this fragment shader GLSL code : http://www.pasteall.org/10779 but I don't really get how to port it to BJS shaders (maybe because I haven't yet learnt anything about them ) Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.