This package helps to combine GLSL code snippets.
This package is build around functions of type Generator -> Generator
.
They are all meant to be used in a pipeline (|>
) or by composing them (>>
).
A type that describes a fragment shader
emptyFragmentShader : Generator
This starts a fragment shader pipeline
String
defineAttribute : GLSLType -> String -> Generator -> Generator
defineUniform : GLSLType -> String -> Generator -> Generator
defineVarying : GLSLType -> String -> Generator -> Generator
s : String -> Generator -> Generator
Adds some lines of code to main
attribute : GLSLType -> String -> Generator -> Generator
uniform : GLSLType -> String -> Generator -> Generator
generateGLSL : Generator -> String
Transform a generator into the finished GLSL code
generateElm : String -> Generator -> String
Transform a generator into the finished elm code