"매 GLSL/WGSL 의 abstract 의 JS-native shader DSL". 매 Three.js 의 node-based material system 의 evolution — 매 single source 의 WebGL2 + WebGPU 의 compile. 2026 의 r170+ 의 standard — 매 GLSL string 의 deprecated path.
매 핵심
매 왜 TSL
Backend agnostic: 매 동일 code 의 WebGL2 (GLSL) + WebGPU (WGSL) 의 emit.
JS-native: 매 IDE autocomplete, type check, debug 의 enable.
Composable: 매 node graph 의 reuse — 매 material 의 lego.
Compute shaders: 매 GPGPU 의 first-class — particles, sims.
매 핵심 concepts
Node: 매 shader 의 unit (uniform, attribute, op).
NodeMaterial: 매 MeshBasicMaterial 의 TSL 의 version.
import{uniform,MeshStandardNodeMaterial}from'three/tsl';constintensity=uniform(1.0);constmat=newMeshStandardNodeMaterial();mat.emissiveNode=albedo.mul(intensity);// later
intensity.value=2.5;