Support Forum G3D Web Page |
Shader program. More...
Public Member Functions | |
float | circleOfConfusionRadiusPixels (float z, float focusPlaneZ, float screenFocusZ, float nearBlurryPlaneZ, float nearSharpPlaneZ, float farBlurryPlaneZ, float farSharpPlaneZ, float nearScale, float farScale, float scale, const bool chromaBlur, const int model) |
All the z values are negative numbers (in front of the camera). More... | |
Shader program.
|
inline |
All the z values are negative numbers (in front of the camera).
Return value is a signed number where negative values mean that the point spread function is upside down and far from the camera and positive values are close.
If model == PHYSICAL
the scale argument is computed as follows: