Files
cloud-mainworld/ufm cloud/Library/PackageCache/com.unity.render-pipelines.universal@1e87cf1dccb8/Editor/Terrain/TerrainPassUtils.hlsl
T
2026-10-21 20:45:23 +01:00

14 lines
378 B
HLSL

void SplatmapFinalColor(inout half4 color, half fogCoord)
{
color.rgb *= color.a;
#ifndef TERRAIN_GBUFFER // Technically we don't need fogCoord, but it is still passed from the vertex shader.
#ifdef TERRAIN_SPLAT_ADDPASS
color.rgb = MixFogColor(color.rgb, half3(0,0,0), fogCoord);
#else
color.rgb = MixFog(color.rgb, fogCoord);
#endif
#endif
}