webgl-card-effects

Add WebGL2 fragment shader holographic effects to React card components.

415|44|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/notque/vexjoy-agent --skill webgl-card-effects
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: webgl-card-effects
Source: https://github.com/notque/vexjoy-agent/tree/main/skills/frontend/webgl-card-effects
Command: npx skills add https://github.com/notque/vexjoy-agent --skill webgl-card-effects

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill solves the problem of making card rarity visuals feel premium and distinct without resorting to slow or misleading “CSS-only” effects that don’t scale across rarity tiers.

Core Features & Use Cases

It renders holographic foil, metallic shimmer, rarity-driven glow, and hover-reactive tilt-shine using standalone WebGL2 fragment shaders mounted directly on React card components. It targets deckbuilder-style UIs where effect tiers must map cleanly to rarity values (starter/common/uncommon/rare/legendary) and typically integrates with a FramedCard.tsx + rarity prop flow. It uses a shared WebGL2 context singleton (with IntersectionObserver visibility gating and a 30fps throttle) so multiple cards can animate without hitting browser WebGL context limits.

Quick Start

Use the command /card-effects to implement WebGL2 fragment-shader holographic effects for uncommon, rare, and legendary cards on your existing React card component.

Frequently Asked Questions about webgl-card-effects

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

FAQPage Schema
How do I add holographic shimmer and glow effects to card UIs based on rarity tiers?

Holographic shimmer effects for card UIs are added using GPU-accelerated WebGL2 fragment shaders mounted on React components, mapping visual effect tiers to rarity values like uncommon, rare, and legendary.

What's the best way to handle WebGL2 context limits when rendering shader effects on multiple cards?

WebGL2 context limits are handled by using a shared rendering harness singleton with IntersectionObserver visibility gating and a 30fps throttle, allowing multiple cards to animate without exceeding browser constraints.

Does this WebGL2 card effect approach work with React, Vite, and Tailwind?

Yes, the WebGL2 fragment shader effects integrate with React, Vite, and Tailwind card components such as FramedCard.tsx, applying shader overlays only to uncommon, rare, and legendary rarity tiers based on existing hover state.

Can I use CSS fallbacks for card rarity effects when WebGL2 is unavailable?

Yes, a CSS fallback path is provided for card rarity effects when WebGL2 is unavailable, ensuring visual states remain accessible without GPU acceleration.

How do fragment shaders create hover-reactive tilt-shine on card components?

Fragment shaders create hover-reactive tilt-shine by using deterministic shader uniform interfaces that respond to existing hover state props on React card components, rendering metallic shimmer and glow directly via the GPU.

Why should I use WebGL2 fragment shaders instead of CSS for card rarity visuals?

WebGL2 fragment shaders should be used instead of CSS because CSS-only effects are slow and do not scale across distinct rarity tiers, whereas shaders provide premium holographic foil and metallic shimmer efficiently.