fantasyEther.shader
- .metadata155 B
- README.md1.5 KB
- properties.yaml2.2 KB
- shader.wgsl8.6 KB
README.md
fantasyEther
fantasyMaterials' ghost-stuff shader (ectoplasm, ectoplasmPainted, ectoplasmToon): translucent glowing ectoplasm whose light lives in thin WISP STRANDS, contour lines of a rising, swirling, domain-warped 3D noise in world metres. Each strand's distance is measured in metres (contour distance over the field's screen-space gradient), so strands keep the same thin width on a flat wall, a sphere or at a grazing angle, and each is drawn as a gradient: a white-hot core (hot_color x core_gain), saturated color falloff a few centimetres out and a faint haze. Strands fade in and out along their length in tattered patches, so most of a face stays dark and clear (face-on body is near zero); curved shapes add a Fresnel rim (broad saturated band plus thin hot edge). A slow lub-dub heartbeat brightens it all, from input.time.
It emits light only and is drawn additively with no depth write and both faces (render: { type: additive, depth_write: false, cull: none, queue: 3000 }), so overlapping ghosts, the same ghost twice and a ghost's own far side add up the same in any draw order and the room always shows through. It fades out within soft_contact metres of solid geometry behind it, so it passes through walls without a hard line. style 0 realistic, 1 hand-painted (wider soft strands laid down in brushed steps), 2 toon (flat glowing blobs with darker holes, a hard hot outline of constant width, hard rim band). No textures.