New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Comprehensive TSL guide for WebGPU Three.js renderer setup, node materials, compute shaders, and WGSL integration.

skills.sh installs
1.8K
GitHub stars
1.3K
last updated
Jul 14, 2026
View on GitHub

What it does

  • Covers WebGPU renderer setup, TSL syntax and node materials, compute shaders, post-processing, and WGSL integration
  • Includes 7 docs (core-concepts.md, materials.md, compute-shaders.md, post-processing.md, wgsl-integration.md, device-loss.md, limits-and-features.md) plus 5 example scripts and 2 templates
  • Requires the three/webgpu entry point and three/tsl imports, with node properties such as colorNode replacing standard material fields
  • Designed for developers migrating from GLSL to TSL or building particle, water, terrain, and other GPU-driven visual effects

Install

$ npx -y skills add dgreenheck/webgpu-claude-skill --skill webgpu-threejs-tsl -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

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

Details

Repository
github.com/dgreenheck/webgpu-claude-skill
Categories
3D, CAD & Modeling, Frontend & UI Code, Game Development
First seen
Jun 3, 2026

Similar to Webgpu Threejs Tsl

More 3D, CAD & Modeling