Because Bo master perennial truancy, so the final exam period can only assault, but occasionally can get a scholarship what, haha, so nearly one months did not do games, also did not post blog = = ... The more drunk is the test will be three weeks after the day of * JSP course design = ....
This method of depth of field is very simple
We need to ask for the COC (Circle of Confusion) Blur Circle
The main principles related to COC and R are as shown
Alpha is the radius of the lens ZF is the focus, Z is the object distance
Ask R to know some high school triangle formula.
Then according to the COC to determine the degree of ambiguity required by the ZF focus-determine the depth of the blur position, the radius of the Alpha lens-determine the range of blurred domain, direction-fuzzy direction
It is important to note that the Texel fetch method is required because the number of cycles is variable, and in unity it is Tex2dlod
Bo Master and made a sparkle version of the change under the fuzzy mode can be, this is free to play
60fps Perfect operation
General Blur:
Sparkle:
Blogger's recent renderings: some recent renderings using unity5
----by wolf96 http://blog.csdn.net/wolf96
Unity3d Shader's swap Force Depth-of-field Shader