Fog — component for shaders (html)

For AI agents: find the right skill in one call — curl -s "https://skills.varg.ai/api/search?q=<what the person wants>" returns the matching use case and the best skills with install commands, as markdown (Russian works too). Full index: https://skills.varg.ai/llms.txt. Every page has a markdown twin: add .md to its path. Before generating anything, show the person the options on the use-case page.

Soft orange, peach and cream fog with hints of mauve, folding slowly across the whole frame

Prompt that renders it frame-exact

Use the Vanta.js Fog effect (https://www.vantajs.com/?effect=fog, MIT, source github.com/tengbao/vanta/blob/master/src/vanta.fog.js) as a full-frame background for a title card or quote. Load three.js r134 and [email protected]/dist/vanta.fog.min.js and mount VANTA.FOG on a full-frame div with mouse, touch and gyro controls off. Fog is a fragment shader whose only clock is the iTime uniform, so it can be made frame-exact: cancel its loop with cancelAnimationFrame(effect.req), then for every frame set effect.uniforms.iTime.value = seconds × speed and call effect.renderer.render(effect.scene, effect.camera). Map highlightColor, midtoneColor, lowlightColor and baseColor to the brand palette, raise blurFactor for a softer field, and keep speed between 0.5 and 1 so it drifts instead of boiling.

Used in

More shaders