Restore Self rail material dynamics

This commit is contained in:
Meta Vens 2026-05-13 05:18:21 +01:00
commit 16c2b7b5c6
3 changed files with 7 additions and 6 deletions

View file

@ -48,7 +48,7 @@ void selfShellField(float3 dir, float r, float shellIndex, float pressure, float
float3 bands = abs(selfLatticeCoordinates(dir, shellIndex, phase)) * r;
float thickness = lerp(0.020, 0.030, saturate(shellIndex * 0.5));
float shellRail = max(abs(shell) - thickness * 0.34, min3(bands) - thickness * 1.55);
float shellRail = length(float2(shell * 1.18, min3(bands) * 0.74)) - thickness;
rail = min(rail, shellRail);
}
@ -112,11 +112,11 @@ SdfSurface sdfSurface(float3 p, int sdfIndex)
SdfSurface surface;
surface.baseColor = coreColor * isCore + inlayColor * isInlay + railColor * isRail;
surface.metallic = 0.0 * isCore + 0.38 * isInlay + 0.58 * isRail;
surface.roughness = 1.0 * isCore + 0.34 * isInlay + 0.36 * isRail;
surface.metallic = 0.0 * isCore + 0.62 * isInlay + 0.76 * isRail;
surface.roughness = 1.0 * isCore + 0.22 * isInlay + 0.26 * isRail;
surface.emission = inlayColor * isInlay * 0.45
+ railColor * isRail * (0.85 + sdfObject.state.y * 0.18);
surface.emission = inlayColor * isInlay * 0.34
+ railColor * isRail * (0.42 + sdfObject.state.y * 0.10);
return surface;
}

View file

@ -99,3 +99,4 @@
{"timestamp":"2026-05-13T05:02:34+01:00","topic":"self-ignore-self-light","lesson":"The matte-ring diagnostic removed fireflies, leaving an overbright inner surface from Self lighting its own rails. Self surfaces should ignore or heavily attenuate Self direct SDF lighting; carry the rail read with flatter band geometry plus controlled emission instead. Invisible gate-node fields should be cut rather than preserved as dead routing symbolism.","files":["src/Aquarium.Epiphany/Shaders/D3D12SelfBody.hlsl","docs/epiphany-agent-sdf-visual-language.md","state/memory.json","state/evidence.jsonl"],"source":"user reviewed matte-ring test and asked to ignore Self lighting, restore band emission, flatten bands, and cut invisible nodes"}
{"timestamp":"2026-05-13T05:05:58+01:00","topic":"self-light-attenuation-not-flat-shading","lesson":"Do not confuse attenuating Self's own direct light with giving up on shading. The core bypasses PBR by design for the void Fresnel, but rail bands should retain shaped material response, IBL, controlled emission, and heavily attenuated Self direct lighting rather than becoming flat unshaded paint.","files":["src/Aquarium.Epiphany/Shaders/D3D12SelfBody.hlsl","docs/epiphany-agent-sdf-visual-language.md","state/memory.json","state/evidence.jsonl"],"source":"user corrected overbroad 'ignore Self lighting' implementation"}
{"timestamp":"2026-05-13T05:09:00+01:00","topic":"self-rail-material-read","lesson":"Self rail bands need an obvious material read after Self direct-light attenuation: moderate metallic response, lower roughness, and strong controlled emission. If the rails become flat ochre bands, the fix has removed too much shading authority instead of isolating the self-light feedback loop.","files":["src/Aquarium.Epiphany/Shaders/D3D12SelfBody.hlsl","state/evidence.jsonl"],"source":"user screenshot showed attenuated rails lacked visible metallic/emissive character"}
{"timestamp":"2026-05-13T05:16:00+01:00","topic":"self-attenuation-not-material-neutering","lesson":"The Self firefly fix is source attenuation, not material austerity. Keep Self's same-field direct light weak, but preserve the rail form as a continuous shaped band/tube field with metallic PBR response and controlled emission; flat max-slab rail profiles turn the orrery into ochre cardboard and are diagnostic residue, not final architecture.","files":["src/Aquarium.Epiphany/Shaders/D3D12SelfBody.hlsl","state/memory.json","state/evidence.jsonl"],"source":"user screenshot showed post-firefly Self lost dynamic rail shading"}

View file

@ -63,7 +63,7 @@
"Imagination's live shader realizes the six-petal topology as three mirrored sheet-pair fields. Keep film, rim, tendril, spark, shadow, and seed distances separated through material classification so raised rims can glow without collapsing the petal sheets into one generic blob.",
"Do not reintroduce Imagination's old polar-lobed seed or traced half-torus shadow. The seed is a plain luminous opal bud unless the spec asks otherwise; backlog shadow needs a visual contract before it becomes traced geometry.",
"Imagination's ribbon sheets should use one continuous pair-space field for film and raised edge rims. Do not rebuild the bloom from piecewise rim capsules or straight root/tip posts when the sheet parameterization can own the silhouette directly.",
"Self's body is the routing authority object: a black void command sphere with sharp golden Fresnel edge-light, one gold core band, and a compact log-spherical lattice around it. Rails are fixed radial shell strata crossed with angular harmonic bands, each concentric shell owns an orthogonal frame, and the rail profile should be flatter/band-like rather than mirror-tube-like. Self's own direct SDF light is heavily attenuated on Self surfaces; rails still need obvious metallic material response plus strong controlled emission, not flat ochre paint. Do not preserve invisible gate-node fields, animate radial zero crossings, grow rings from points, stack multiple core bands, or rebuild Self as named hoop inventories, one-radius ornament layers, or repeated trigonometry piles.",
"Self's body is the routing authority object: a black void command sphere with sharp golden Fresnel edge-light, one gold core band, and a compact log-spherical lattice around it. Rails are fixed radial shell strata crossed with angular harmonic bands, each concentric shell owns an orthogonal frame, and the rail profile should be a shaped continuous band/tube field, not a max-composed flat slab or hairline mirror wire. Self's own direct SDF light is heavily attenuated on Self surfaces; rails still need obvious metallic material response plus controlled emission, not flat ochre paint. Do not preserve invisible gate-node fields, animate radial zero crossings, grow rings from points, stack multiple core bands, or rebuild Self as named hoop inventories, one-radius ornament layers, or repeated trigonometry piles.",
"For Self, the orrery comparison is motion and topology grammar. Rails and core bands should emerge from a shared orbital space with phase motion, not from independent tilted hoops, loose symbols, invisible nodes, or literal anatomical motifs.",
"Self is allowed to be a scene light, but its visible body must not add full primitive light radiance to its own surfaces. Self's shader should heavily attenuate Self direct lighting and still carry the visible rails through PBR-like material response, controlled emission, IBL, and material contrast.",
"Heavy/specialized SDF evaluators should not live inside generic packed-id helpers when those helpers are called repeatedly; avoid shader compiler path cloning.",