webgl-raymarched-hero
하는 일
웹 페이지에 나타나는 빛나고 움직이는 3D 장면을 만듭니다. 전통적인 3D 모델이나 텍스처 없이, '레이마칭'이라는 기법으로 움직이고 변하는 유기적인 형태를 그립니다.
사용하는 경우
- ✓페이지 히어로 영역에 인상적인 현대적 3D 느낌이 필요할 때.
- ✓합쳐지는 '방울' 같은 3D 형태가 부드럽게 변하는 모습을 보여 주고 싶을 때.
- ✓3D 모델과 텍스처의 복잡함 없이 독특한 시각 효과를 만드는 경우.
스킬 링크
https://github.com/nexu-io/open-design/blob/main/plugins/_official/examples/webgl-raymarched-hero/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“천천히 공전하는 '메타볼'이 있는 3D 시각 효과를 만들어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
프로그램은 전체 화면 삼각형을 그리고, 특별한 코드(fragment shader)로 각 픽셀의 색을 계산합니다. 3D 공간에서 빛의 광선이 나아가는 모습을 시뮬레이션해 형태와 그림자를 만듭니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Raymarched Hero Skill
Produce a single self-contained index.html that renders a real-time 3D scene entirely in a fragment shader via sphere tracing, full-screen, with a clean typographic overlay on top.
Why this is a powered artifact
OpenDesign detects getContext('webgl2') and renders this file in powered preview — a cross-origin-isolated iframe with allow-same-origin. The full GPU pipeline is available; you do not need to work around the opaque sandbox.
Resource map
webgl-raymarched-hero/
├── SKILL.md ← you're reading this
└── example.html ← a working SDF metaball raymarcher (READ FIRST)
Workflow
Step 0 — Read the reference
Read example.html end to end. Note the shape: one fullscreen triangle; a map(p) signed-distance function that smooth-unions (smin) several moving spheres; normals by finite differences; a softShadow march; and a camera built from ro/ta with a slow orbit. Shading = diffuse × soft shadow + fresnel rim + a tight specular.
Step 1 — Choose the SDF
Keep the marcher cheap so it holds 60fps:
- Metaballs (default): a few spheres blended with
smin— organic, always readable. - Rounded primitives: box/torus/capsule SDFs with domain repetition for a structured hero.
- Displaced surface: a sphere plus a low-amplitude noise displacement for a molten look.
Step 2 — Build index.html
- One file, zero external requests. Fullscreen triangle + fragment raymarch.
- Bound the march: cap iterations (~90), early-out on hit (
d < 0.001) and on far distance; clamp DPR to ~1.5 — raymarching is per-pixel heavy. - Light it: diffuse, a soft/penumbra shadow, a fresnel rim (
pow(1 - dot(n,-rd), 3)), and one specular lobe. Gentle gamma at the end. - Compile shaders with error logging so a typo fails loudly, not silently black.
Step 3 — Overlay + brand
- Map the accent colors to the active DESIGN.md when one is present; otherwise a restrained dark palette with one vivid accent (the reference tints the surface toward lime
#63fe13and rims it in teal). - Headline ≤ 13ch plus one supporting line. Keep the 3D form as the hero.
Step 4 — Self-review (P0)
- Renders continuously at ~60fps; the FPS badge updates.
- Surface has real depth cues: shadow, rim, and a moving specular.
- No banding artifacts at the silhouette; normals are stable.
- Resizes crisply on window resize (no stretching / blur).
- Degrades to a message (not a blank page) if
webgl2is unavailable.
자주 묻는 질문
'메타볼'이란 무엇인가요?
가까이 있을 때 서로 자연스럽게 섞이고 합쳐지는 '방울' 모양의 3D 형태입니다.
'레이마칭'이란 무엇인가요?
빛의 경로를 시뮬레이션해 3D 장면을 그리는 컴퓨터 그래픽 기법입니다. 광선을 쏘아 어디에 닿는지 보고 그릴 내용을 정합니다.
왜 3D 모델이나 텍스처를 쓰지 않나요?
이 기법은 코드 안에서 수학 계산으로 형태를 직접 만드는 데 초점을 맞추어, 외부 모델 파일이나 텍스처 파일 없이도 독특한 효과와 유연한 움직임을 만들 수 있습니다.
상세 정보
작성자의 원본 설명
A real-time raymarched 3D hero — soft-shadowed morphing metaballs with a fresnel rim light, sphere-traced per pixel in a fragment shader with a slow camera orbit. No meshes, no textures. Rendered as a single self-contained `index.html`. Use when the brief asks for a "raymarch", "signed distance field", "SDF", "3D hero", "metaballs", "blobs", or a shader-based 3D scene. OpenDesign serves this in po
repo: nexu-io/open-design
인기도
- GitHub 스타
- 101k
- 순위
- #1063
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
sample-plugin
101k에이전트가 테스트용 메타데이터 파일을 만들도록 합니다. 코드가 다양한 상황에서 올바르게 작동하도록 돕습니다.
aster-atelier
101k클래식한 느낌의 예술 웹사이트를 만들도록 에이전트를 돕습니다. 우아한 이미지, 푸른 하늘, 세리프 글꼴로 영화 같은 분위기를 냅니다.
audio-jingle
101k징글(jingle)과 효과음 같은 오디오를 에이전트가 생성하도록 합니다. 음악과 음성을 만들고 결과를 오디오 파일로 저장할 수 있습니다.
blog-post
101k긴 기사나 블로그 글을 쓰도록 에이전트를 돕습니다. 이미지, 인용문, 작성자 정보를 넣을 공간이 포함됩니다.