feat: HouseOfLeaves synchro & moving blocs
This commit is contained in:
@@ -72,12 +72,18 @@ void Sand_float
|
||||
out float Alpha
|
||||
)
|
||||
{
|
||||
float t = Progression;
|
||||
t -= RidgedNoise3D(PositionWS, .3, 1, 2, .5) * .3;
|
||||
|
||||
float depth = length(PositionWS - _WorldSpaceCameraPos.xyz);
|
||||
float arkMask = 0;
|
||||
|
||||
float t = Progression;
|
||||
t -= RidgedNoise3D(PositionWS, .3, 1, 2, .5) * .3;
|
||||
t -= pow(smoothstep(0, 100, depth), .5) * .6;
|
||||
//t += pow(abs(PositionWS.x), 3) * .02;
|
||||
//t -= pow(saturate(1 - abs(PositionWS.x * .5)), 2) * .3;
|
||||
t += .15;
|
||||
t = saturate(t);
|
||||
|
||||
// Sand
|
||||
|
||||
float sandLayers = 6;
|
||||
@@ -100,14 +106,19 @@ void Sand_float
|
||||
|
||||
// Output
|
||||
|
||||
Color = ColorRemapLinear(saturate(pow(smoothstep(5, 30, depth * sandPatern), .5)), ColorA, ColorB, ColorC, ColorD, ColorE);
|
||||
|
||||
Position = PositionWS;
|
||||
Position.y += sandMask;
|
||||
Position.y *= 1 + saturate(pow(abs(PositionWS.x * .5), 3)) * lerp(-.2, 1.4, sandMask);
|
||||
|
||||
float n = PerlinNoise3D(Position, 50);
|
||||
|
||||
Color = ColorRemapLinear(saturate(pow(smoothstep(5, 30, (Position.z - _WorldSpaceCameraPos.z * .8) * sandPatern), .5)), ColorA, ColorB, ColorC, ColorD, ColorE);
|
||||
Color *= lerp(1, n, smoothstep(30, 0, depth));
|
||||
|
||||
Height = sandMask;
|
||||
|
||||
Alpha = smoothstep(1, .5, abs(smoothstep(-20, 20, PositionWS.x) * 2 - 1));
|
||||
Alpha = 1 - /*smoothstep(1.5, 1.3, abs(PositionWS.x)) **/ smoothstep(0, .3, abs(Position.y));
|
||||
}
|
||||
|
||||
void HouseOfLeaves_float
|
||||
|
||||
Reference in New Issue
Block a user