Closed einarf closed 4 years ago
values = {"VALUE1": 1, "VALUE2": 1} shaders.load("shader.glsl", preprocessors=values)
.. would insert the following lines in the shader:
#define VALUE1 1 #define VALUE2 1
It should be possible to instantiate the same shader multiple times with different preprocessor values.
We'll support this in moderngl-window
.. would insert the following lines in the shader:
It should be possible to instantiate the same shader multiple times with different preprocessor values.