webgpu-threejs-tsl

Build WebGPU Three.js applications with TSL for renderer setup, node materials, compute shaders, and post-processing.

4|4|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/Roentek/Claude_Code_Boilerplate_Framework --skill webgpu-threejs-tsl-roentek
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: webgpu-threejs-tsl
Source: https://github.com/Roentek/Claude_Code_Boilerplate_Framework/tree/main/.claude/skills/webgpu-threejs-tsl
Command: npx skills add https://github.com/Roentek/Claude_Code_Boilerplate_Framework --skill webgpu-threejs-tsl-roentek

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

This Skill solves the problem of writing, understanding, and debugging WebGPU-accelerated Three.js shaders without manually authoring low-level WGSL/GLSL strings.

Core Features & Use Cases

  • WebGPU renderer setup & integration: Get a Three.js WebGPURenderer working end-to-end so you can render with node-based materials reliably.
  • TSL shader authoring for node materials: Create dynamic PBR materials (color, roughness, metalness, emissive, normals) using TSL nodes and node property assignments.
  • GPU compute with TSL: Implement compute shader workflows for particle simulation, instanced buffers, uniforms, and common compute patterns like init/update passes.
  • Post-processing pipelines: Chain screen-space effects (e.g., bloom/vignette) using TSL render pipelines for visually rich results.
  • WGSL integration when needed: Use wgslFn to drop in custom WGSL functions while keeping a TSL-first development flow.
  • Error-prone topic coverage: Includes guidance on WebGPU device loss handling and TSL gotchas around property assignment vs JavaScript variable reassignment.

Use this when you are prototyping GPU visuals (animated materials, procedural surfaces), building GPU particle systems, or migrating a shader workflow to TSL for faster iteration.

Quick Start

Use the webgpu-threejs-tsl skill to generate a minimal WebGPU Three.js example that renders an animated MeshStandardNodeMaterial using TSL and a working renderer initialization.

Frequently Asked Questions about webgpu-threejs-tsl

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a WebGPU renderer in Three.js using TSL?

Initialize a WebGPU-enabled Three.js renderer by following correct TSL import patterns and ensuring GPU compute execution ordering occurs strictly after renderer.init to guarantee reliable node-based material rendering.

Can I create dynamic PBR materials with Three.js TSL nodes?

Yes, you can author dynamic PBR materials in Three.js using TSL by assigning node properties for color, roughness, metalness, emissive, and normals, avoiding manual low-level GLSL string authoring.

How does GPU compute work for particle simulation in Three.js WebGPU?

GPU compute for particle simulation in Three.js uses TSL compute shaders with instancedArray storage buffers and uniforms, structuring workflows into distinct init and update passes for effective simulation.

What is the best way to chain post-processing effects like bloom in Three.js WebGPU?

Chain screen-space post-processing effects like bloom and vignette in Three.js by utilizing TSL render pipelines, enabling visually rich results without writing low-level WGSL shader strings.

Does Three.js TSL support custom WGSL function integration?

Yes, Three.js TSL supports custom WGSL function integration by using wgslFn wrappers to drop in specific WGSL code while maintaining a TSL-first development flow for your shaders.

Why does my Three.js WebGPU material break when reassigning TSL variables?

Three.js WebGPU materials break because TSL requires node property assignments rather than standard JavaScript variable reassignment, and you must handle WebGPU device loss safely to avoid rendering failures.