Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This lens shader be added DOF sample control, improve quality of DOF blur .
The cause of modify original lens shader is improve rendering speed . Original lens shader(physical_lens_dof) only sample four times per pixel, but this number of sample is too low for final production . The only answer is increase Sample Level in Render Global Settings, but it is also the more expensive(inefficient, because sample per pixel on global image) . I add a control for number of DOF(Depth of field) sampling, then you can control DOF's sample times . These sample only for DOF blur, so it is less expensive and more efficient .
Please visit Release notes for full description after unpack.