The escaped-newline approach is simple, but not ideal considering that esprima removes the newlines on parsing which in turn will break any shaders with a #define directive. I think it'd be better to have these using either the [].join('\n') method or (preferably) load them in with brfs. Happy to make the changes, but @mikolalysenko would you be OK with this?
The escaped-newline approach is simple, but not ideal considering that esprima removes the newlines on parsing which in turn will break any shaders with a
#definedirective. I think it'd be better to have these using either the[].join('\n')method or (preferably) load them in with brfs. Happy to make the changes, but @mikolalysenko would you be OK with this?