webgpu-threejs-tsl
Comprehensive guide for developing WebGPU-enabled Three.js applications using TSL (Three.js Shading Language). Covers WebGPU renderer setup, TSL syntax and node materials, compute shaders, post-processing effects, and WGSL integration. Use this skill when working with Three.js We.
This rank signal uses GitHub stars, measured star growth, and recent maintenance. It is not a safety score or install approval.
Worth reviewing before you install
Worth a closer look if the use case fits. It has adoption, measured growth, and recent maintenance. No primary install command was extracted, so review the upstream source first.
Browser automation teams. Channel tag: Claude Code. Treat this as a search fit signal, not compatibility proof. Best when you can review the repo manually before adoption. Start with skills/webgpu-threejs-tsl/SKILL.md.
Inspect skills/webgpu-threejs-tsl/SKILL.md and the install command before adding it to a shared agent workflow. No actionable warning was returned for this snapshot.
Compare nearby browser automation skills in the Claude Code channel when 1,000 GitHub stars, source freshness, or install notes are close. This one still needs manual install review, so a nearby skill may be easier to adopt.
How to install webgpu-threejs-tsl
No install command was extracted. Treat this as a manual review case.
SKILL.md and source review
Primary path: skills/webgpu-threejs-tsl/SKILL.md
51/100 from GitHub star count, star growth rate, and recent update.
51/100 from GitHub star count, star growth rate, and recent update.
27/45 points. Star count is log-scaled so large repos lead without completely hiding newer projects.
13.9/35 points from 175 net stars over 53.3 observed day(s).
10/20 points. Most recent GitHub activity: 2026-04-10T14:28:23Z.
- GitHub ranking score uses star count, measured star growth rate, and recent repository update only.
- 860 stars at last scan.
- 33 stars/week measured from 2026-04-22 to 2026-04-29T10:46:58.587Z.
- Most recent GitHub activity was 2026-04-10T14:28:23Z.
Source evidence preview
We show selected README/SKILL.md excerpts, not a full mirror of the repo. Use the focus cards for install notes, usage, and skill rules, then open GitHub before installing.
Sections found: Installation, Install from this repository.
Sections found: Quick Example.
Sections found: When to Use This Skill.
Overview
This skill provides Claude with comprehensive knowledge for:
- Setting up Three.js with WebGPU renderer
- Writing shaders using TSL (Three.js Shading Language)
- Creating node-based materials
- Building GPU compute shaders
- Implementing post-processing effects
- Integrating custom WGSL code
Installation
This repo ships the same content in two formats so it works in both Claude Code (as an Agent Skill) and Cursor (as project rules). The Claude skill under skills/ is the source of truth; the Cursor rules under .cursor/rules/ are thin shims that @file-reference those same docs, so edits flow through automatically.
Install from this repository
/skill install webgpu-threejs-tsl@ /webgpu-claude-skill
Or manually copy the skills/webgpu-threejs-tsl folder to:
- Global:
~/.claude/skills/ - Project:
<project>/.claude/skills/
Cursor
Clone this repo and open it directly — Cursor picks up .cursor/rules/ automatically.
To use the rules in your own project, copy both directories into your project root, preserving the paths:
your-project/
├── .cursor/rules/ # from this repo
└── skills/webgpu-threejs-tsl/ # from this repo (referenced by the rules)The .mdc files use @file references pointing at skills/webgpu-threejs-tsl/..., so the skills/ directory must travel with them. If you'd rather not keep the skills/ folder, inline the referenced content into each .mdc file.
The rules are scoped by globs and auto-attach only on relevant files:
webgpu-threejs-tsl.mdc— entry point, JS/TS filescompute-shaders.mdc— files matching*compute*or*particle*post-processing.mdc— files matching*post*,*effect*,*bloom*wgsl-integration.mdc—.wgslfiles and*wgsl*JS/TSdevice-loss-and-limits.mdc— files matching*renderer*or*webgpu*
Quick Example
import * as THREE from 'three/webgpu';
import { color, time, oscSine, normalWorld, cameraPosition, positionWorld, Fn, float } from 'three/tsl';
// WebGPU renderer
const renderer = new THREE.WebGPURenderer();
await renderer.init();
// TSL material with animated fresnel
const material = new THREE.MeshStandardNodeMaterial();
material.colorNode = color(0x0066ff);
material.emissiveNode = Fn(() => {
const viewDir = cameraPosition.sub(positionWorld).normalize();
const fresnel = float(1).sub(normalWorld.dot(viewDir).saturate()).pow(3);
return color(0x00ffff).mul(fresnel).mul(oscSine(time));
})();Need the full source? Read full README on GitHub
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));Import Pattern
// Always use the WebGPU entry point
import * as THREE from 'three/webgpu';
import { /* TSL functions */ } from 'three/tsl';Node Materials
Replace standard material properties with TSL nodes:
material.colorNode = texture(map); // instead of material.map
material.roughnessNode = float(0.5); // instead of material.roughness
material.positionNode = displaced; // vertex displacementWhen to Use This Skill
- Setting up Three.js with WebGPU renderer
- Creating custom shader materials with TSL
- Writing GPU compute shaders
- Building post-processing pipelines
- Migrating from GLSL to TSL
- Implementing visual effects (particles, water, terrain, etc.)
Need the full source? Read full SKILL.md on GitHub
