|
| ||||||||||||||||||||||||||||||||||||
| Shader | Post-process
| |||||||||||||||||||||||||||||||||||
| Synopsis |
Depth of field effect.
| |||||||||||||||||||||||||||||||||||
| Location | lishpost | |||||||||||||||||||||||||||||||||||
| Description |
Simulation of depth of field effect using a post-processing
shader. The effect is controlled either by parameters describing
the camera model (lens focal length, aperture stop) or directly
(distance to near and far boundary of field in focus, level of
blurring in near and far field).
The effect, if desired, can be controlled separately in near field and far field without regard to physical correctness---this gives the ability to create impossible but desirable effects.
The shader also queries the front and back clipping planes. The back clipping plane is used to establish the distance to background. All objects further away than the back clipping plane are set to the distance of the far clipping plane. The front clipping plane is used to clip nearer objects. If the front clipping plane is nearer to the observer than the focal length then it is adjusted to focal length with 10 (e.g., if near plane is set on 0.1 mm while the focal length is 50 mm then actual near plane will be set on 55 mm ). It is so because image of points closer to the camera than focal distance does not exist.
Previous page alphabetically (depthcue) | |||||||||||||||||||||||||||||||||||
Copyright © 1990-2004, 2005 LightWork Design Limited. All rights reserved | ||||||||||||||||||||||||||||||||||||