Ghostty Shaders
This canvas renders ghostty shaders using WebGL. Use the menu in the top left to enable or disable. Check the debug menu in the bottom right.There will be glitches.
Loading shaders...
There are some slight differences that can cause issues. Many Ghostty shaders don't load directly.
Often the cleanup is just explicitly setting types correctly. It seems like WebGL does not like coercing integers to float, while Ghostty does this fine.
Thanks to 0xhckr for collecting some excellent shaders, some of which I load here.
Available Uniforms
| Uniform | Type | Description |
|---|---|---|
iTime | float | Elapsed time in seconds |
iResolution | vec3 | Canvas width, height, aspect ratio |
iFocus | int | 1 when focused, 0 when blurred |
iTimeFocus | float | iTime when last focused |
iCurrentCursor | vec4 | Current cursor (xy = position, zw = size) |
iPreviousCursor | vec4 | Previous cursor (xy = position, zw = size) |
iCurrentCursorColor | vec4 | Cursor color (RGBA) |
iTimeCursorChange | float | iTime when cursor last moved |
iChannel0 | sampler2D | Background texture (optional) |