You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the problem is, no function b when HELLO is undefined, it will caused some issue.
so maybe glslify shouldn't do too much processing, user could use macros to avoid multiple require like C/C++.
The text was updated successfully, but these errors were encountered:
A temporary workaround for this issue is to require b before a. I believe it's possible to do this in all cases where a module is required between preprocessor conditionals like that, even if you're not using b in the file where you're requiring it.
#pragma glslify: b = require('./b.glsl')
#pragma glslify: a = require('./a.glsl')
void main() {
gl_FragColor=vec4(a(1.0), b(1.0), 0.0, 0.0);
}
a.glsl
b.glsl
c.glsl
glslify < c.glsl
the problem is, no function
b
whenHELLO
is undefined, it will caused some issue.so maybe glslify shouldn't do too much processing, user could use macros to avoid multiple require like C/C++.
The text was updated successfully, but these errors were encountered: