Horizon strata shader
"STRATA" shadcn integration of the brief's verbatim WebGL2 `lab.tsx` — a single fullscreen fragment pass that folds space into repeating 4-unit horizon strata (`p.y = abs(mod(d - 2.0, 4.0) - 2.0)`) over a cosine-tube ground plane and flies it toward the vanishing point (`p.z -= t`), tanh-mapped — dropped into `@/components/ui` and framed as a deep-field stratigraphy scanner: a right-edge layer gauge whose reticle rides the shader's own march clock (one sweep per band), a chromatic-split STRATA wordmark, a hold/resume control wired to the component's real `paused` prop, and a telemetry rail reading live depth/frame/FPS off the GPU loop via `onSample`; CSS-strata fallback when WebGL2 is unavailable, fonts vendored locally.
From prompt to live site
- 01
Copy the prompt
Grab the full prompt — the layout, motion and stack notes your AI needs, with the licence notice.
- 02
Paste into your AI
Drop it into Claude, Cursor or v0 — or straight into your own project.
- 03
Launch it live
Adapt the copy, wire your data, and ship — with the notice kept alongside.
Source and licence
Source: pulkitxm/claude-directory@f3d7e12f34bf
Author: 2026 Pulkit
Entry: shaders/horizon-strata-shader/index.html
MIT License Copyright (c) 2026 Pulkit Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Files (19, plus 5 media)
- .gitignore (55 bytes)
- README.md (3,960 bytes)
- components.json (408 bytes)
- index.html (868 bytes)
- package.json (689 bytes)
- postcss.config.js (81 bytes)
- prompt.md (7,268 bytes)
- src/App.tsx (12,665 bytes)
- src/components/demo.tsx (158 bytes)
- src/components/ui/lab.tsx (8,872 bytes)
- src/index.css (4,674 bytes)
- src/lib/utils.ts (174 bytes)
- src/main.tsx (239 bytes)
- src/vite-env.d.ts (39 bytes)
- tailwind.config.ts (1,113 bytes)
- tsconfig.app.json (605 bytes)
- tsconfig.json (208 bytes)
- tsconfig.node.json (453 bytes)
- vite.config.ts (261 bytes)
Want the whole library?
Every item's prompt, code and instructions, with a CreativePower subscription.