The source code for the tutorial examples included as a zip file in the FSH documentation. For more information, see the online FSH Tutorial. When updates are to be published (incorporated into the ...
float fraction = clamp((dist - fogStart) / (fogEnd - fogStart), 0.0, 1.0); //float fraction = clamp(fogStart / max(dist, 0.01), 0.0, 1.0); ...