This class applies atmospheric effects to a fragment.

Only useful if you're doing your own Shading Model, otherwise this is already all implied when you use ShadingModelStandard

API

float3 Fog::Apply( float3 worldPos, float2 screenPos, float3 color )

  • Applies all atmospheric affects ( Gradient Fog, Cubemap Fog, Volumetric Fog ) to this fragment.





Created 8 Dec 2024
Updated 8 Dec 2024