Loader for custom shaders for my game engine.
A shader is code to be given to the GPU to render triangles in a certain way. In .shader files, public uniforms that materials can access are also specified.
Requires both a fragment and vertex stage
- stage (The type of shader (VERTEX, FRAGMENT, ...))
- source (The source code of the shader)
- uniforms (The uniforms to be exposed to any materials using this shader)
- uniform (Uniform to reference in the source code)
- name (Custom name to be displayed in editor)
- default (Default value to be assigned to materials only for certain types (int, float, bool, vec1/2/3))
- range (Allowable range for integer and floating point values)