Back to browse
GitHub Repository

Shebang for Shaders

124 starsPython

Shaderbang – Shebang for Shaders

by astefanutti·May 28, 2026·3 points·0 comments

AI Analysis

●●●BangerWizardryNiche GemBig Brain

DRM/KMS fullscreen rendering without X or Wayland—rare for shader tooling.

Strengths
  • Direct DRM/KMS rendering bypasses entire windowing system stack for embedded use.
  • Shadertoy compatibility means existing shaders run without modification.
  • PEP 723 inline dependencies enable single-file executable shader scripts.
Weaknesses
  • Linux-only with DRM/KMS requirement limits audience significantly.
  • No Windows or macOS support mentioned for cross-platform development.
Target Audience

Embedded Linux developers, shader programmers, headless rendering users

Post Description

Shaderbang is a Python toolkit for OpenGL rendering using DRM/KMS on Linux. It renders fullscreen without requiring any windowing system, like X or Wayland, making it ideal for embedded systems and headless environments. It is compatible with shaders from Shadertoy, and can be used as a library to build interactive applications.

It supports hot-pluggable input devices — keyboard, mouse, touchscreen, and trackpad — via evdev for interactive rendering. Shader files can be made directly executable with shebangs, and Python scripts can embed their dependencies inline as single-file scripts using PEP 723.

Similar Projects

AI/MLMid

Gymnasium RL Environments in Julia

Julia port of Gymnasium environments, but Python's RL ecosystem already dominates this space.

Niche Gem
scascino4
201mo ago