Skip to content

About

CESHAD shader packs for the Creatures 3 / Docking Station Community Edition engine — pick-up shader agents (magnifier, fireball, glowing crystal, plasma orb, water droplet) + full-screen bloom/CRT sources

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

c2e-shaders

CESHAD shader packs for the Creatures 3 / Docking Station Community Edition engine. Each agent applies a live shader to the game — five as pick‑up‑and‑drop toys that shade the world beneath them, two as full‑screen post‑processes. The packs are cross‑platform — each .ceshad carries the shader as GLSL, SPIR‑V, MSL and HLSL (SM5.1), so it runs on the Metal, Vulkan and Direct3D CE backends.

Gallery

Magnifier Fireball Glowing Crystal
magnifier.mp4
fireball.mp4
glowing-crystal.mp4
Plasma Orb Water Droplet
plasma-orb.mp4
water-droplet.mp4

Agents (pick‑up toys)

Each of these drops into the world at your cursor as an ordinary carryable agent — click it with the Hand to pick it up, click again to put it down.

Pick one up and it shrinks; drop it in the world and it grows back. The shrink is done by the shader (each effect takes its size in pixels, eased by the engine) rather than by swapping sprites, so it closes smoothly. Dropped into the inventory drawer it stays small — a vehicle only accepts an agent that fits its cabin.

Agent Effect
Magnifier a glass lens that magnifies + refracts the world
Fireball a procedural flame that casts warm light on nearby pixels
Glowing Crystal a refractive gem that brightens + pulses the scene behind it
Plasma Orb volumetric electric‑energy tendrils in a reflective sphere
Water Droplet concentric ripples distorting the world beneath

Agents (full‑screen)

These two shade the whole view instead of a patch of world. The sprite geometry is ignored: the shader runs once over the composited frame. The carrier is Floatable, so it screen‑locks to the camera and the effect follows you anywhere. There is nothing to pick up.

Agent Effect
CRT Overlay barrel curvature, scanlines, vignette and chromatic aberration
Bloom bright‑pass, blur, and an additive glow over the frame

Installing an agent

Drop the agent's .agent file into your game's My Agents folder and inject it from the in‑game Agent Injector (or send its install.cos to the running engine's CAOS port). The .agent bundles the compiled .ceshad shader pack and a placeholder sprite; the engine resolves the shader by name from the game Images tree.

Building from source

Everything needed to turn a fragment shader into a redistributable .agent lives in tools/:

tools/build-agents.sh                                      # every effect → build/
tools/build-agents.sh --src agents/magnifier --out build   # just one

glslc, spirv-cross and spirv-val all have to be on PATH — there is no Metal‑only fallback. See tools/README.md for the effect-directory layout, how to write a shader against the CESHAD interface, the CESHAD_* macros, and the CAOS gotchas worth knowing before you write an install script.

What is a .ceshad?

A CESHAD pack is a portable shader container holding the same fragment shader in every backend language — GLSL, SPIR‑V, MSL, and HLSL SM5.1 — plus a small META block describing the bleed margins and the scene‑read and full‑screen flags.

Each effect here is a single vec4 shade(vec4 texel, vec2 uv) source. There is no second, hand-written copy per backend: tools/make-ceshad.py compiles that one source through tools/ceshad-prelude.glsl — which supplies the varyings, uniform block, samplers, helper API and main() — to SPIR‑V, cross‑compiles it to MSL and HLSL, and packs all four together, so one .ceshad runs on the Metal, Vulkan and Direct3D CE backends and cannot have its backends disagree.

The prelude is a decode of CE's own compiled output, recovered from the two CE-authored reference packs. The shaders consume fragment inputs locn0–locn3, a subset of the older, wider interface, so a pack built here runs both on Community Edition and on engines that emit more than CE does.

Licence

Original shader code released under CC0 1.0 (public domain). Several effects are ports of public‑domain Shadertoy techniques. tools/ceshad-prelude.glsl is a decode of the CESHAD interface, written for interoperability; no third‑party pack contents are redistributed here.

About

CESHAD shader packs for the Creatures 3 / Docking Station Community Edition engine — pick-up shader agents (magnifier, fireball, glowing crystal, plasma orb, water droplet) + full-screen bloom/CRT sources

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages