wip: HouseOfLeaves & BodiesInWater Blocking

This commit is contained in:
Alexandre Coirier
2026-05-20 21:39:54 +02:00
parent 85c17e49b5
commit 55e19eb959
32 changed files with 4125 additions and 326 deletions
@@ -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;
}