wip: Main shader detail map

This commit is contained in:
Alexandre Coirier
2026-06-01 21:55:23 +02:00
parent d873676d01
commit 2f3cd8dc7e
13 changed files with 1004 additions and 1602 deletions
@@ -246,7 +246,9 @@ void EnkiBillalFullscreen_float
// COLOR (WIP)
float3 pWS = positionWS; //scaledPositionOS;
float3 c = sceneColor;
/*float3 pWS = positionWS; //scaledPositionOS;
float n0 = PerlinNoise3D(pWS, 2);
float distort = WorldDistort(pWS + n0 * .2, normalWS, 1, .1);
float3 p = pWS + n0 * 2 + distort * smoothstep(.5, .7, n0) * .06;
@@ -257,7 +259,7 @@ void EnkiBillalFullscreen_float
float3 v = cell * .8; // * (grad + distort * .1);
v += smoothstep(.05, .02, grad) * smoothstep(.4, .7, n0) * 2;
float3 c = sceneColor * lerp(.9, 1, v);
c *= lerp(.9, 1, v);
// DIRT
@@ -267,7 +269,7 @@ void EnkiBillalFullscreen_float
float dirt0 = smoothstep(.2, .22, dirtNoise0);
float dirt1 = saturate(smoothstep(.01, .02, abs(dot(dirtNoise0, dirtNoise1) - .4)) + dirtNoise1 + outlineAtten);
c *= dirt0 * dirt1;
c *= dirt0 * dirt1;*/
// SHADOW