9148c358d0
Topic_Agent/Topic_Blog/Topics/Topics_Biz/Topics_Meeting/Topics_Rag의 마크다운 지식 문서를 Topic_General/Topic_Programming/Topic_Graphic/Topic_Business 4개 카테고리로 재분류. - 중복 제거: frontmatter의 status:duplicate/merged + duplicate_of/redirect_to 필드로 자기 자신을 중복으로 선언한 리다이렉트 stub 1032개 제거, 완전 동일 내용 파일 472개 제거, 동일 파일명·다른 내용 충돌 시 더 큰(완전한) 버전만 유지(162개 제거) — 총 1639개 중복 제거. - 분류: 폴더 단위로 명확한 항목(AI_and_ML/Coding/Architecture 등 → Programming, Comfyui/Visual_Effects → Graphic, Topics_Biz/Topics_Meeting/사업 등 → Business, Poetic_Blog_Writing/창의성/Game_Design 등 → General)은 폴더 우선순위로, 나머지 혼재 폴더(Topic_Agent/Topic_Blog/Topics 루트/Thinking & Reasoning/Other/UI_UX_Assets)는 title/tags 키워드 스코어링으로 파일 단위 분류(불명확한 경우 General로 폴백). 원본 폴더명은 "From_*" 서브폴더로 보존해 추적 가능성 유지. - 최종 배치: Programming 2784 / General 1608 / Graphic 285 / Business 249 = 4926개 문서. - 에이전트 운영 상태(.astra/.agent/.obsidian/sessions/memory/_company/docs/lessons/_shared/src)는 지식 콘텐츠가 아니므로 재분류 대상에서 제외하고 원위치 유지. - Topics/Topic_email(상위 보호 폴더 Topic_email과 파일명 100% 중복) 삭제 — 보호 폴더 자체는 미변경. - 완전히 비게 된 Topic_Agent/Topic_Blog/Topics_Biz/Topics_Rag 폴더 제거.
4.8 KiB
4.8 KiB
id, title, category, status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, verification_status, tags, raw_sources, last_reinforced, github_commit, tech_stack
| id | title | category | status | canonical_id | aliases | duplicate_of | source_trust_level | confidence_score | verification_status | tags | raw_sources | last_reinforced | github_commit | tech_stack | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| wiki-2026-0508-threejs-webgpurenderer | Threejs WebGPURenderer | 10_Wiki/Topics | verified | self |
|
none | A | 0.9 | applied |
|
2026-05-10 | pending |
|
Threejs WebGPURenderer
매 한 줄
"매 modern GPU access for the web". Three.js의 WebGPURenderer (r170+, 2024-2026 stable)는 WebGL 의 successor — 매 compute shaders, modern bind groups, lower CPU overhead. TSL (Three.js Shading Language) 로 cross-API shader (WebGPU + WebGL fallback) 의 author 가능.
매 핵심
매 WebGL → WebGPU shift
- Lower CPU overhead — 매 explicit pipelines, fewer state-change costs.
- Compute shaders — 매 GPGPU on the web (particles, fluid sim, ML inference).
- Modern API — 매 Vulkan/Metal/D3D12 의 abstraction 의 inherit.
- Storage buffers — 매 large structured data 의 GPU access.
매 TSL (Three.js Shading Language)
- 매 JS 로 shader 의 author — 매 cross-compile to WGSL (WebGPU) + GLSL (WebGL).
- Node-based composition — 매 reusable shader graph.
- 매
MeshStandardNodeMaterial등 node-aware material.
매 응용
- High-particle scenes (1M+ particles via compute).
- Real-time GPGPU (cloth, fluids, soft-body).
- Modern post-processing pipelines.
💻 패턴
Renderer 의 setup
import * as THREE from "three/webgpu";
const renderer = new THREE.WebGPURenderer({ antialias: true });
await renderer.init(); // 매 async init 필수
renderer.setPixelRatio(window.devicePixelRatio);
renderer.setSize(innerWidth, innerHeight);
document.body.appendChild(renderer.domElement);
TSL material (node-based)
import { MeshStandardNodeMaterial, uniform, time, sin } from "three/tsl";
const mat = new MeshStandardNodeMaterial();
mat.colorNode = uniform(new THREE.Color(0x0088ff)).mul(sin(time).add(1).mul(0.5));
mesh.material = mat;
Compute shader (particles)
import { Fn, instanceIndex, storage, vec3, deltaTime } from "three/tsl";
const positions = storage(positionBuffer, "vec3", count);
const velocities = storage(velocityBuffer, "vec3", count);
const updateParticles = Fn(() => {
const i = instanceIndex;
positions.element(i).addAssign(velocities.element(i).mul(deltaTime));
});
const compute = updateParticles().compute(count);
renderer.computeAsync(compute);
Fallback to WebGL
import WebGPU from "three/addons/capabilities/WebGPU.js";
const Renderer = WebGPU.isAvailable()
? (await import("three/webgpu")).WebGPURenderer
: (await import("three")).WebGLRenderer;
const renderer = new Renderer({ antialias: true });
if (renderer.init) await renderer.init();
Post-processing (PostProcessing API)
import { PostProcessing } from "three/webgpu";
import { pass, mrt, output, emissive } from "three/tsl";
const post = new PostProcessing(renderer);
const scenePass = pass(scene, camera);
scenePass.setMRT(mrt({ output, emissive }));
const bloom = scenePass.getTextureNode("emissive").bloom(1.5);
post.outputNode = scenePass.getTextureNode("output").add(bloom);
Async render loop
renderer.setAnimationLoop(async () => {
controls.update();
await renderer.renderAsync(scene, camera);
});
매 결정 기준
| 상황 | Approach |
|---|---|
| Modern browsers, target audience | WebGPURenderer |
| Legacy browser support | WebGLRenderer (fallback) |
| Massive particle / GPGPU | WebGPU compute (필수) |
| Simple scene | WebGL still fine |
| Cross-API shader | TSL |
| Production app (2026) | WebGPU primary, WebGL fallback |
기본값: 매 new project 는 WebGPURenderer + WebGL fallback (WebGPU support 매 ~92% as of 2026).
🔗 Graph
🤖 LLM 활용
언제: 매 modern web 3D, compute shader 의 필요, particle systems, custom shader pipelines. 언제 X: 매 simple banner animations — 매 CSS / SVG 의 충분.
❌ 안티패턴
renderer.init()의 forget: 매 async init 매 필수 — 매 sync 가정 시 crash.- WebGL-only shader (raw GLSL) 의 lock-in: 매 TSL 로 portable 하게 작성.
- Per-frame buffer recreation: 매 storage buffer 의 reuse — 매 GC pressure.
- Compute dispatch overuse: 매 1k particles 의 compute 가 vertex shader 보다 slow 일 수 있음.
🧪 검증 / 중복
- Verified (Three.js docs r170+, WebGPU spec W3C CR 2024).
- 신뢰도 A.
🕓 Changelog
| 날짜 | 변경 |
|---|---|
| 2026-05-08 | Phase 1 |
| 2026-05-10 | Manual cleanup — WebGPU + TSL modern patterns |