paraphernalia.glsl module¶
Render GLSL fragment shaders to screen/video.
- class FakeUniform[source]¶
Used to provide a uniform, where a shader doesn’t have one.
Has no effect.
- value = None¶
- class Renderer(ctx, fragment_shader, resolution=(100, 100), duration=0)[source]¶
Core logic for rendering fragment shaders, shared across render and preview functions.
Initializer.
- Parameters
ctx ([type]) – Context provided by ModernGL
fragment_shader (str) – A fragment shader
resolution (tuple, optional) – [description]. Defaults to (100, 100).
duration (int, optional) – [description]. Defaults to 0.
- Return type
None