TSL conversion

Convert Three.js GLSL shader code into TSL node materials.

31|4|Updated Mar 1, 2026
One-click install
npx skills add https://github.com/Robpayot/tslda --skill tsl-conversion
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: TSL conversion
Source: https://github.com/Robpayot/tslda/tree/main/.cursor/skills/tsl
Command: npx skills add https://github.com/Robpayot/tslda --skill tsl-conversion

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Convert GLSL shader code from Three.js into TSL node materials to simplify migration and reuse across projects.

Core Features & Use Cases

  • Shader migration: translate GLSL shader logic into TSL node graphs compatible with Three.js materials.
  • Node-material portability: build reusable shader graphs that can be shared across projects using TSL.
  • Use Case: migrate a custom lighting shader from GLSL into a TSL material to run in WebGPU/WebGL contexts.

Quick Start

Run the TSL converter on a GLSL shader to generate a TSL node material.

Frequently Asked Questions about TSL conversion

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

FAQPage Schema
How do I convert GLSL shaders to TSL node materials in Three.js?

To convert GLSL shaders to TSL node materials, you run the TSL converter on your existing Three.js GLSL shader code, which translates the shader logic into a reusable TSL node graph.

What is TSL and why use it instead of GLSL for Three.js shaders?

TSL is a node material system for Three.js that simplifies shader migration and reuse. You use TSL to build portable runtime shading graphs that can run across WebGPU and WebGL contexts instead of static GLSL.

Can I migrate custom lighting GLSL shaders to TSL for WebGPU contexts?

Yes, you can migrate custom lighting shaders from GLSL into TSL materials. This allows your custom shader logic to run seamlessly in WebGPU and WebGL contexts using the TSL node graph structure.

What is the best way to share Three.js shader graphs across projects?

The best way to share shader graphs across projects is to convert them into TSL node materials. TSL provides node-material portability, allowing you to build reusable shader graphs from GLSL logic.

Do I need any dependencies to migrate GLSL to TSL node materials?

You do not need external dependencies to migrate GLSL to TSL node materials. The conversion requires a YAML frontmatter with name and description in SKILL.md and may use optional scripts, references, and assets directories.