Shader Generator

2D Generator  -  Create your own shader with mathematical beautifulness in OpenGL Shading Language through the ShaderWorkspaceComponent Icon Shader Editor

ShaderTextureGenerator ShaderTextureGenerator ShaderTextureGenerator ShaderTextureGenerator

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.

ShaderVariables ShaderVariables

Here is a simple example from the default Shader :

ShaderVariables02 ShaderVariables02

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"

ShaderImport ShaderImport


Variables:

  • Dynamic Variables: Dynamic variables of the shader generator

Python

    Oil.createObject("ShaderTextureGenerator")