wip: HouseOfLeaves & BodiesInWater Blocking
This commit is contained in:
@@ -11,7 +11,7 @@ void Sand_float
|
||||
float3 NormalWS,
|
||||
out float3 Position,
|
||||
out float Height,
|
||||
out float Debug
|
||||
out float Alpha
|
||||
)
|
||||
{
|
||||
//float t = frac(_Time.y / 20);
|
||||
@@ -52,6 +52,7 @@ void Sand_float
|
||||
sandFlow = (sandFlow + floor(t * sandLayers)) / sandLayers;
|
||||
|
||||
float sandMask = sandFlow * 1.5 - t * .8 + (sandPatern * 2 - 1) * sandDensity * t * .3;
|
||||
sandMask *= sandDensity * .7 + .3;
|
||||
|
||||
// Test
|
||||
|
||||
@@ -72,7 +73,7 @@ void Sand_float
|
||||
|
||||
Height = sandMask;
|
||||
|
||||
Debug = 1;
|
||||
Alpha = smoothstep(1, .5, abs(smoothstep(-5, 5, PositionWS.x) * 2 - 1));
|
||||
//Debug = sandFlow;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user