Transform Python code into GLSL shaders
Project description
Transform Python code into GLSL shaders.
See demo.py 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.
License
GNU GPLv3+
Documentation
Implementation
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shaderdef-0.8.3.tar.gz
(13.8 kB
view details)
File details
Details for the file shaderdef-0.8.3.tar.gz
.
File metadata
- Download URL: shaderdef-0.8.3.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 641fc0eeceec4dff413fd77ff5ac9d151c7a0a2b75e26dacdec7b17f6b26b0fd |
|
MD5 | 5b1219b3517b3a5a98ac57f2205c5ad1 |
|
BLAKE2b-256 | 36c89e751ad2f85232c06c177c8bea80cfc6f9feb277585a7bb555bbccb375b3 |