include-shader 0.2.0

A macro for including shader files as string with dependencies support.
Documentation
1
2
3
4
5
6
7
8
9
10
uniform vec2 u_resolution;

#include "tests/shaders/functions/luminance.glsl"
#include "tests/shaders/functions/rand.glsl"

void main() {
   vec2 st = gl_FragCoord.xy / u_resolution.xy;

   gl_FragColor = vec4(vec3(rand(st)), 1.0);
}