fogFragment.fx 109 B

1234
  1. #ifdef FOG
  2. float fog = CalcFogFactor();
  3. color.rgb = fog * color.rgb + (1.0 - fog) * vFogColor;
  4. #endif