webgl-laser

Generate a fixed full-screen WebGL laser background with brand-colored halo and fog.

4.5k|536|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/MengTo/Skills --skill webgl-laser
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: webgl-laser
Source: https://github.com/MengTo/Skills/tree/main/agent-skills/web-design/webgl-laser
Command: npx skills add https://github.com/MengTo/Skills --skill webgl-laser

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of creating a cinematic, on-brand laser background effect quickly without writing and tuning a full graphics pipeline from scratch.

Core Features & Use Cases

  • Fixed full-screen laser canvas: Renders a full-viewport WebGL effect behind your existing DOM content with pointer-events: none and correct stacking so foreground UI stays readable.
  • Brand-colored halo + smoke: Keeps a thin white-hot core while deriving the glow and fog/particles from your page accent color (e.g., --brand-accent).
  • Controlled, subtle motion: Provides a gentle glow pulse (no aggressive flicker or multicolor cycling) and concentrates atmospheric smoke around the beam.

Quick Start

Integrate the skill by adding a full-screen <canvas data-webgl-laser> behind your content, wiring it to initialize initWebGLLaser(...), and passing a brand-derived accent color (optionally adjusting coreWidth, glowWidth, and smokeDensity).

Frequently Asked Questions about webgl-laser

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a WebGL laser background to my website without blocking UI interactions?▼

A fixed full-screen WebGL laser canvas sets pointer-events to none, allowing clicks to pass through to foreground UI. The effect renders behind existing DOM content with correct stacking, ensuring interactive elements remain fully accessible.

Can I match the laser background glow to my brand accent color?▼

Yes, the WebGL laser background derives its glow and smoky fog from a brand-derived accent color. You simply pass your brand color into the initialization function, keeping a thin white-hot core while the halo adopts your specified accent.

What is the best way to create a cinematic hero background with subtle motion?▼

A WebGL shader implementation provides a controlled, subtle glow pulse for cinematic atmospheric motion without aggressive flicker. It concentrates smoky fog around the beam, resizing resolution uniforms dynamically to fit static hero-style backgrounds.

Does this WebGL laser effect replace general particle systems for web design?▼

No, this effect has strict scope restrictions to avoid replacing general hero, particle, or multisystem effects. It is specifically designed for generating static, full-screen laser backdrops with atmospheric motion rather than complex particle simulations.

How do I adjust the visual intensity of the smoke and laser beam?▼

You can adjust visual intensity by passing configuration options like coreWidth, glowWidth, and smokeDensity during initialization. These parameters control the white-hot core thickness, the brand-colored halo spread, and the concentration of atmospheric smoke.