fix: HouseOfLeaves sand setup
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user