feat: HouseOfLeaves synchro & moving blocs

This commit is contained in:
Alexandre Coirier
2026-06-16 18:00:59 +02:00
parent de466efa05
commit e88717bbd2
8 changed files with 8801 additions and 157 deletions
@@ -267,10 +267,10 @@ void EnkiBillalFullscreen_float
// DISTORTION
float distortAtten = pow(smoothstep(5, 20, depthMeters), 2);
float nDistort0 = FBMNoise3D(positionWS * float3(1, 2.0, 1) - time * .1 - np0 * .5 + np3 * 3, 1.5, 1, 2, .5) * 2 - 1;
float nDistort1 = FBMNoise3D(positionWS * float3(1, 1.5, 1) - time * .1 - np0 * .5 + np4 * 3, 1.5, 1, 2, .5) * 2 - 1;
float nDistort0 = FBMNoise3D(positionWS * float3(1, 2.0, 1) - time * .2 - np0 * .5, 1.5, 1, 2, .5) * 2 - 1;
float nDistort1 = FBMNoise3D(positionWS * float3(1, 1.5, 1) - time * .2 - np0 * .5, 1.5, 1, 2, .5) * 2 - 1;
float2 uvDistort0 = uv0 + nDistort0 * .005;
float2 uvDistort1 = uv0 + nDistort1 * .015;
float2 uvDistort1 = uv0 + nDistort1 * .025;
float3 sceneColor2 = SampleSceneColor(uvDistort0);
sceneColor2 = lerp(sceneColor2, SampleSceneColor(uvDistort1), .3);
float3 cDistort = saturate(sceneColor2 - sceneColor) * distortAtten;
@@ -317,7 +317,7 @@ void EnkiBillalFullscreen_float
//c = lerp(c, sceneColor2, (greyscale + smoothstep(5, 35, depthMeters) * .8) * .5);
//c += sceneColor2 * greyscale * .5;
c = lerp(c, outlineColor, outline);
c += cDistort * 1;
c += cDistort * 1.5;
//c = ((c + 1) * (sceneColor2 + 0));
//c = smoothstep(-.1, 0, np2);
//c = greyscale;