Transpiling shader from GLSL ES 3 to TSL

Hello!

I am in the process of updating https://FreecivX.net from WebGL to WebGPU.

I am reaching out to the Three.js devs here for help to port the shader from GLSL3 to TSL.

This is the shader code:

I would like to use this transpiler:
https://threejs.org/examples/webgpu_tsl_transpiler

So I would appreciate some help porting this shader to TSL. Some questions:

This is for the open source FreecivX 3D project. Thank you!

Andreas

I’m curious about the out qualifier, I understood that nodes support only one output?