Imported library

← Imported library
SubscriptionMIT licence

Realistic fog background

shader

"HAAR" sea-fog instrument integrating the prompt's realistic-fog-background — a WebGL fragment-shader fog (six octaves of domain-warped fBm on one full-screen quad lit by a cursor "lighthouse beam") dropped into @/components/ui; the signature visibility gauge reads the shader's own framebuffer luminance off the GPU via gl.readPixels, a control deck promotes every baked constant to a live uniform with a five-patch fog bank (Sea Haar → Pea Souper → Dry Ice → Moor Drift → Clear Dawn), plus a full shadcn/Tailwind/TS integration story; fonts vendored locally.

From prompt to live site

  1. 01

    Copy the prompt

    Grab the full prompt — the layout, motion and stack notes your AI needs, with the licence notice.

  2. 02

    Paste into your AI

    Drop it into Claude, Cursor or v0 — or straight into your own project.

  3. 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/realistic-fog-background/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 (23, plus 6 media)
  • .gitignore (72 bytes)
  • README.md (2,801 bytes)
  • components.json (418 bytes)
  • index.html (702 bytes)
  • package.json (704 bytes)
  • prompt.md (7,041 bytes)
  • public/favicon.svg (414 bytes)
  • scripts/verify.mjs (7,751 bytes)
  • src/App.tsx (16,779 bytes)
  • src/components/lab/ControlDeck.tsx (3,743 bytes)
  • src/components/lab/VisibilityGauge.tsx (5,102 bytes)
  • src/components/lab/presets.ts (2,649 bytes)
  • src/components/ui/demo.tsx (5,007 bytes)
  • src/components/ui/mist-field.tsx (8,553 bytes)
  • src/components/ui/realistic-fog-background.tsx (558 bytes)
  • src/index.css (4,968 bytes)
  • src/lib/utils.ts (309 bytes)
  • src/main.tsx (241 bytes)
  • src/vite-env.d.ts (121 bytes)
  • tsconfig.app.json (564 bytes)
  • tsconfig.json (208 bytes)
  • tsconfig.node.json (451 bytes)
  • vite.config.ts (378 bytes)

Want the whole library?

Every item's prompt, code and instructions, with a CreativePower subscription.

See plans

More shader templates