Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "shaders/chunks/raymarch_fog_fragment"

Index

Variables

Const raymarch_fog_fragment

raymarch_fog_fragment: "#ifdef USE_FOGfloat fogDepth = -(modelViewMatrix * vec4(position, 1.0)).z;#ifdef FOG_EXP2float fogFactor = 1.0 - exp(-fogDensity * fogDensity * fogDepth * fogDepth);#elsefloat fogFactor = smoothstep(fogNear, fogFar, fogDepth);#endifgl_FragColor.rgb = mix(gl_FragColor.rgb, fogColor, fogFactor);#endif" = `#ifdef USE_FOGfloat fogDepth = -(modelViewMatrix * vec4(position, 1.0)).z;#ifdef FOG_EXP2float fogFactor = 1.0 - exp(-fogDensity * fogDensity * fogDepth * fogDepth);#elsefloat fogFactor = smoothstep(fogNear, fogFar, fogDepth);#endifgl_FragColor.rgb = mix(gl_FragColor.rgb, fogColor, fogFactor);#endif`

Generated using TypeDoc