text: function getUniforms({
    fogEnable = false,
    fogColor = [0.5, 0.5, 0.5],
    fogNear = 1,
    fogFar = 100
  } = {}) {
    return {
      fog_uEnable: fogEnable,
      fog_uColor: fogColor,
      fog_uNear: fogNear,
      fog_uFar: fogFar
    };
  }
  
  const fs = "\nuniform bool fog_uEnable;\nuniform vec3 fog_uColor;\nuniform float fog_uNear;\nuniform float fog_uFar;\nvec4 fog_filterColor(vec4 color) {\n  if (fog_uEnable) {\n    float depth = gl_FragCoord.z / gl_FragCoord.w;\n    float fogFactor = smoothstep(fog_uNear, fog_uFar, depth);\n    return mix(color, vec4(fog_uColor, gl_FragColor.w), fogFactor);\n  } else {\n    return color;\n  }\n}\n\n";
  export default {
    name: 'fog',
    getUniforms,
    vs: '',
    fs
  };
  //# sourceMappingURL=fog.js.map