danini-the-panini/mittsu-opengl

View on GitHub
lib/mittsu/opengl/shader/chunks/fog_pars_fragment.glsl

Summary

Maintainability
Test Coverage
#ifdef USE_FOG

    uniform vec3 fogColor;

    #ifdef FOG_EXP2

        uniform float fogDensity;

    #else

        uniform float fogNear;
        uniform float fogFar;
    #endif

#endif