animate/webGl/my-threejs-test/node_modules/glslify-bundle/fixtures/unsuffixable-source.glsl

18 lines
416 B
Plaintext
Raw Normal View History

2024-06-24 09:24:00 +00:00
struct Ray {
vec3 origin;
vec3 direction;
} ray1;
const Ray ray2 = Ray(vec3(0), vec3(0, 1, 0));
const vec2 vec = vec2(0.0);
const float pi = 6.28;
#pragma glslify: n = require('./unsuffixable-child', a = vec.x, b = 5.0, c = vec, e = 2, f = ray1.origin.xy, t = pi, g = ray2.direction)
void runner(in vec2 fragCoord) {
gl_FragColor = vec4(n(fragCoord + vec2(d + h)), 1.0);
}
#pragma glslify: export(runner)