Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Transform Python code into GLSL shaders

Project description

Transform Python code into GLSL shaders.

See for a quick example of how to use the library.

This module does not currently provide any sort of shader execution (although that would be a fun addition). It just outputs GLSL code.




The builtin ast module is used to parse Python functions and transform them into GLSL code.

An alternative implementation that actually evaluated the functions and kept track of the assignment tree was dropped because regular Python control structures can’t be used.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for shaderdef, version 0.8.3
Filename, size File type Python version Upload date Hashes
Filename, size shaderdef-0.8.3.tar.gz (13.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page