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.mdSalin 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
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
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,viewporton 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
webgl2is 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
Komentar
- β¦
Skill lain dari repositori ini
sample-plugin
101kMembuat agent Anda menghasilkan file metadata untuk pengujian. Ini membantu memastikan kode berjalan dengan benar di berbagai situasi.
aster-atelier
101kMembantu agent Anda membuat website artistik dengan tampilan klasik. Menggunakan citra elegan, langit biru, dan font serif untuk nuansa sinematik.
audio-jingle
101kMembuat agent Anda menghasilkan audio seperti jingle dan efek suara. Bisa membuat musik dan suara, lalu menyimpan hasilnya sebagai file audio.
blog-post
101kMembantu agent Anda menulis artikel panjang atau postingan blog. Sudah tersedia ruang untuk gambar, kutipan, dan informasi penulis.
Skill serupa
add-model-provider
394kMemungkinkan agent Anda menghubungkan penyedia model AI baru ke OpenClaw dengan perintah pengaturan yang aman, menjaga kunci API tetap di luar teks biasa, dan menjalankan uji langsung.
acp-router
394kMembantu agent Anda mengirim tugas ke asisten pemrograman seperti Claude Code atau Cursor lewat OpenClaw, sehingga pekerjaan dijalankan di alat tersebut.
browser-automation
394kMengajari agent Anda mengendalikan halaman web langkah demi langkah, termasuk login, tab, dan pemulihan saat halaman berhenti merespons.