Langsung ke konten
Skillpedia
Agen101k Β· #970

webgl-experience

Fungsinya

Membuat pengalaman visual animasi layar penuh menggunakan teknologi WebGL. Alat ini menampilkan grafis real-time seperti shader, scene 3D, atau efek partikel, dengan teks sederhana di atasnya. Semuanya disajikan dalam satu file HTML.

Kapan dipakai

  • βœ“Saat Anda membutuhkan latar belakang animasi yang menarik untuk sebuah website.
  • βœ“Untuk membuat demo visual interaktif tentang konsep atau grafis 3D.
  • βœ“Saat mengembangkan efek visual real-time yang berjalan langsung di browser.

Link skill

https://github.com/nexu-io/open-design/blob/main/design-templates/webgl-experience/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/nexu-io/open-design/blob/main/design-templates/webgl-experience/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBuatkan pengalaman WebGL dengan medan aurora dan judul sederhana.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

AI menggunakan kode WebGL untuk menggambar grafis langsung di kartu grafis komputer Anda. AI kemudian membuat file HTML yang berisi semua instruksi untuk menampilkan animasi layar penuh ini dengan teks di atasnya.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

WebGL Experience Skill

Produce a single self-contained index.html that renders a real-time WebGL (or WebGL2) visual full-screen, with a clean typographic overlay on top.

Why this is a powered artifact

OpenDesign detects getContext('webgl2') / new Worker / SharedArrayBuffer and renders this file in powered preview β€” a cross-origin-isolated iframe with allow-same-origin. That means real Web Workers, SharedArrayBuffer, WASM, and the full GPU pipeline are available. You do not need to work around the opaque sandbox. Prefer webgl2 for modern features; fall back to webgl when the effect allows.

Resource map

webgl-experience/
β”œβ”€β”€ SKILL.md      ← you're reading this
└── example.html  ← a working WebGL2 aurora-field reference (READ FIRST)

Workflow

Step 0 β€” Read the reference

Read example.html end to end. Note the shape: one full-viewport <canvas>, a fragment-shader draw loop on a fullscreen triangle, a DPR-aware resize, and a requestAnimationFrame tick. The overlay (kicker β†’ h1 β†’ sub) is pure HTML/CSS layered above the canvas via z-index.

Step 1 β€” Choose the visual

Pick ONE technique that fits the brief:

  • Fragment-shader field (default): domain-warped fbm noise, flow fields, plasma, gradients. Cheapest, always 60fps.
  • Raymarched scene: SDF spheres/boxes with soft shadows for a 3D hero.
  • Instanced geometry: thousands of points/quads driven by a vertex shader.
  • Post-processed image: sample a data-URI texture and distort/dither it.

Step 2 β€” Build index.html

  • Keep it one file, zero external requests (inline the shader source; embed any texture as a data: URI). Powered mode allows CDN loads, but self-contained previews are faster and portable.
  • Always: alpha:false, DPR clamped to 2, viewport on resize, and a guard that shows a graceful message if the context is null.
  • Compile shaders with error logging (getShaderInfoLog) so a typo fails loudly, not silently black.

Step 3 β€” Overlay + brand

  • Map the two :root-level accent colors to the active DESIGN.md when one is present; otherwise use a restrained dark palette with a single vivid accent (the reference uses lime #63fe13).
  • Headline ≀ 14ch, one supporting line. Never cover the whole canvas β€” the visual is the hero.

Step 4 β€” Self-review (P0)

  • Renders continuously at ~60fps; the FPS badge updates.
  • No WebGL console errors; getError() clean after first frame.
  • Resizes crisply on window resize (no stretching / blur).
  • Readable overlay contrast over the brightest frame.
  • Degrades to a message (not a blank page) if webgl2 is unavailable.
Pertanyaan umum

Apa itu WebGL?

WebGL adalah teknologi yang memungkinkan penampilan grafis 2D dan 3D interaktif di browser web, dengan memanfaatkan kekuatan pemrosesan kartu grafis.

Apa itu shader?

Shader adalah program kecil yang berjalan di kartu grafis untuk mengatur cara objek 3D digambar, termasuk warna, tekstur, dan efek pencahayaan.

Apa arti 'real-time'?

Artinya animasi dibuat dan ditampilkan seketika, terus diperbarui saat Anda berinteraksi atau seiring berjalannya waktu.

Detail

Deskripsi asli dari pembuat

A full-screen, real-time WebGL/WebGL2 experience β€” animated shaders, 3D scenes, generative visuals, particle fields β€” rendered live on the GPU with a typographic overlay. Produced as a single self-contained `index.html`. Use when the brief asks for a "WebGL", "shader", "3D", "generative", "GPU", "interactive canvas", "hero animation", or "real-time visual" experience. OpenDesign serves this in pow

repo: nexu-io/open-design

Popularitas

Bintang GitHub
101k
Peringkat
#970
Lisensi
Apache-2.0
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa