fix: HouseOfLeaves sand setup

This commit is contained in:
Alexandre Coirier
2026-06-03 01:15:15 +02:00
parent c0f7f805f3
commit adb1512ab3
6 changed files with 425 additions and 30 deletions
@@ -7,6 +7,7 @@ void Fog_float
(
float4 ColorA,
float4 ColorB,
float DepthAtten,
float3 PositionWS,
float3 PositionOS,
float3 PivotWS,
@@ -28,7 +29,7 @@ void Fog_float
//float test = RidgedNoise3D(PositionWS, 10, 2, 2, .5);
float3 camPos = _WorldSpaceCameraPos.xyz;
float depth = distance(camPos, PositionWS);
float depthAtten = smoothstep(5, 30, depth);
float depthAtten = lerp(1, smoothstep(5, 30, depth), DepthAtten);
float t = _Time.y * .7;