title: Smooth transition in GLSL
body: <p>I need your help about implementing slow trasition effect in fragment shader. For example I've DOF effect which is controlled by mouse. Changing of x,y position attracts of changing of depth of variable.</p>
  
  <pre><code>depth = linearize(texture(dofTexture,vec2 mouse).x)
  </code></pre>
  
  <p>How to slow down a changing of depth at instant changes of mouse? Another words, how to smooth of transition between states into fragment shader? Do I need to use exterior uniforms?</p>