For an example of how to use SimpleDOF.cs, consult the "4 - DOF Blur" scene located in "Holoplay/Examples".
The following 4 fields describe the DOF blur envelope.
start dip rise end
All envelope values have depth values as measured in multiples of
holoplay.size. Objects that appear between
- negative infinity and
startdepth will appear with blurSize amount of blur
dipdepth will appear at a linearly interpolated blur amount between blurSize and 0
risedepth will appear at 0 blur
enddepth will appear at a linearly interpolated blur amount between 0 and blurSize
endand positive infinity will appear at blurSize amount of blur
Which Holoplay is this blur associated with
Amount of blur, as measured in pixels on a boxBlur
Usually SimpleDOF is applied to account for visual artifacts. With the Looking Glass, these artifacts only occur horizontally, so by default this script only blurs horizontally. Uncheck to blur horizontally and vertically.
Displays a gradient to visualize the focus.
- Black means in between
riseand therefore appears with no blur
- White means before
endand therefore full blur amount