LAB 178 / SHADER INTEROPERABILITY

Change the language. Keep the math.

Translate a small GLSL function into renderer-agnostic TSL or backend-facing WGSL, then inspect exactly what the bridge emitted.

InitializingPreview —

Preparing the decoder, linker, and encoder.

DECODER / GLSL

Source shader

— lines

The current implementation accepts GLSL input. The transpiler tokenizes it, builds an AST, links references, then asks the selected encoder to emit code.

ENCODER / TSL

Emitted code

— lines

          
        

RENDER CHECK

Native TSL preview

preset reference

The preview is a small native TSL graph using the same wave vocabulary; it validates the rendering side of the lab without executing arbitrary editor text.

GLSL source→AST + linker→TSL→native preview
LAB 178 / TSL TRANSPILER