Comment by oersted

Comment by oersted 2 days ago

3 replies

Does this version support custom GPU shaders? I have been looking for a command-line with cool-retro-term aesthetics that can run in the browser for a while.

kylecarbs 2 days ago

I'd have to let Mitchell answer this accurately.

Considering the native Ghostty does, I _think_ the answer would be yes? I might tinker around with this and let you know.

  • mitchellh 2 days ago

    It's maybe possible. Custom shaders are OpenGL syntax so it'd require transforming them to something compatible with WebGL/WebGPU. In Ghostty GUI we use spire-cross and glslang to transpile shaders at runtime from OpenGL to Metal or OpenGL (with features our host supports).

    We'd have to look and see if these support WebGL/GPU. The next problem would be making all that fit into the wasm blob.

    Or, we may be able to skip most of this is the OpenGL syntax we use is already compatible. Then no transpiling necessary...