Shader Generator
2D Generator - Create your own shader with mathematical beautifulness in OpenGL Shading Language through the Shader Editor
The Shader layer generator allows you to code your own shader in GLSL. You can do whatever you like!
Type CTRL+ENTER to recompile the shader after modifying it:
You can save your shaders by saving them as presets, see the Use presets section of the documentation to be informed.
Here is a simple example from the default Shader :
Do not forget to activate the Shader Pack Preset Pack to access to shaders already coded by the soft delicate hands of our dev team (check out Use presets topic).
Here is a short introduction to how to import simple GLSL shader. For that you’ll need to use our functions instead of the classical ones :
void main (){ }" --> "vec4 main(vec2 uv, vec2 dx, vec2 dy){}
gl_FragCoord.xy/u_resolution.xy" --> "uv"
Variables:
- Dynamic Variables: Dynamic variables of the shader generator
Python
Oil.createObject("ShaderTextureGenerator")