webgpu-threejs-tsl

Solid

Reference WebGPU APIs, TSL syntax, node materials, WGSL integration, compute shaders, and post-processing in Three.js. For complete particle canvases use threejs-particle-canvas; for GLSL shaders use rocaille-shader. Triggers on TSL shader, WebGPU renderer, node material, WGSL, GPU compute, WebGPU setup.

Web & Frontend 41 stars 3 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 84/100

Stars 20%
54
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# WebGPU Three.js with TSL TSL (Three.js Shading Language) is a node-based shader abstraction that lets you write GPU shaders in JavaScript instead of GLSL/WGSL strings. ## Quick Start ```javascript import * as THREE from 'three/webgpu'; import { color, time, oscSine } from 'three/tsl'; const renderer = new THREE.WebGPURenderer(); await renderer.init(); const material = new THREE.MeshStandardNodeMaterial(); material.colorNode = color(0xff0000).mul(oscSine(time)); ``` ## Skill Contents ### Documentation - `docs/core-concepts.md` - Types, operators, uniforms, control flow - `docs/materials.md` - Node materials and all properties - `docs/compute-shaders.md` - GPU compute with instanced arrays - `docs/post-processing.md` - Built-in and custom effects - `docs/wgsl-integration.md` - Custom WGSL functions - `docs/device-loss.md` - Handling GPU device loss and recovery - `docs/limits-and-features.md` - WebGPU device limits and optional features ### Examples - `examples/basic-setup.js` - Minimal WebGPU project - `examples/custom-material.js` - Custom shader material - `examples/particle-system.js` - GPU compute particles - `examples/post-processing.js` - Effect pipeline - `examples/earth-shader.js` - Complete Earth with atmosphere ### Templates - `templates/webgpu-project.js` - Starter project template - `templates/compute-shader.js` - Compute shader template ### Reference - `REFERENCE.md` - Quick reference cheatsheet ## Key Concepts ### Import Pattern ```javascript // Alw...

Details

Author
tdimino
Repository
tdimino/claude-code-minoan
Created
7 months ago
Last Updated
yesterday
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category