Skip to main content

Module shaders

Module shaders 

Source
Expand description

Shader management for the renderer.

Manages two independent shader renderers:

  • Background shader (custom_shader_renderer) — full-screen post-processing effect rendered before the terminal cell grid, compatible with Ghostty/Shadertoy GLSL.
  • Cursor shader (cursor_shader_renderer) — cursor overlay effect rendered after the cell grid, enabling glow, trail, and other cursor effects.

§Sub-modules

  • [background] — init and impl Renderer methods for the background shader
  • [cursor] — init and impl Renderer methods for the cursor shader
  • [shared] — impl Renderer methods that update both renderers (mouse, cursor state, etc.)

Structs§

CursorShaderInitParams
Parameters for initialising the cursor shader renderer.
CustomShaderEnableParams
Parameters for enabling/updating the background custom shader at runtime.
CustomShaderInitParams
Parameters for initialising the background custom shader renderer.